summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-25 16:20:24 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-25 16:20:24 +0000
commitb00f24f6356d9e5f1fcdf70a24defd5376080e6b (patch)
tree8a7f3b486aa9aee13c4ab3985d77a9786089b965 /mdoc_html.c
parent01ab75c7a0975692f32fd806b8eb8fc5d07b312e (diff)
downloadmandoc-b00f24f6356d9e5f1fcdf70a24defd5376080e6b.tar.gz
mandoc-b00f24f6356d9e5f1fcdf70a24defd5376080e6b.tar.zst
mandoc-b00f24f6356d9e5f1fcdf70a24defd5376080e6b.zip
Arguments to `Bsx' and friends are separated by a non-breaking space.
This removes a TODO raised by schwarze@.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 0641d32e..8b1478de 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.147 2011/01/25 15:46:05 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.148 2011/01/25 16:20:24 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -823,8 +823,14 @@ mdoc_xx_pre(MDOC_ARGS)
PAIR_CLASS_INIT(&tag, "unix");
print_otag(h, TAG_SPAN, 1, &tag);
+
print_text(h, pp);
- return(1);
+ if (n->child) {
+ h->flags |= HTML_KEEP;
+ print_text(h, n->child->string);
+ h->flags &= ~HTML_KEEP;
+ }
+ return(0);
}