summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-02-06 23:02:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-02-06 23:02:31 +0000
commit1b4ee06d0da0de19730fbbbea4827fad12cc5932 (patch)
treefbbb89846f4de6bab06803b65a7a692e7b3061a3 /mdoc_html.c
parentb644559327d5d0df7faf84707ca23fa348e0dc87 (diff)
downloadmandoc-1b4ee06d0da0de19730fbbbea4827fad12cc5932.tar.gz
Fix a regression caused by mdoc_term.c 1.214 / mdoc_html.c 1.148:
Inside .Bk or inside the SYNOPSIS, Unix variant macros cleared the keep flag.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 59bef0df..4cfd188e 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -806,6 +806,7 @@ mdoc_xx_pre(MDOC_ARGS)
{
const char *pp;
struct htmlpair tag;
+ int flags;
switch (n->tok) {
case (MDOC_Bsx):
@@ -835,9 +836,10 @@ mdoc_xx_pre(MDOC_ARGS)
print_text(h, pp);
if (n->child) {
+ flags = h->flags;
h->flags |= HTML_KEEP;
print_text(h, n->child->string);
- h->flags &= ~HTML_KEEP;
+ h->flags = flags;
}
return(0);
}