summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-08-26 09:03:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-08-26 09:03:17 +0000
commit18796a779fe7edf7d5304e767e0ba3f19ce163df (patch)
tree9949c2ba3aa55269258071dc650478dcbcb8fb3a
parent0fabbfc2fd6c5473030f8cf9aa934794853b454e (diff)
downloadmandoc-18796a779fe7edf7d5304e767e0ba3f19ce163df.tar.gz
Make sure that `Ql' literalises its arguments in -T[x]html. Found when
doing manpages.bsd.lv stuff.
-rw-r--r--example.style.css2
-rw-r--r--mdoc_html.c6
-rw-r--r--style.css2
3 files changed, 7 insertions, 3 deletions
diff --git a/example.style.css b/example.style.css
index 9f0ce4b2..1b1e44dd 100644
--- a/example.style.css
+++ b/example.style.css
@@ -38,7 +38,7 @@ i { } /* Italic: BI, IB, I, (implicit). */
b { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
.symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
small { } /* Small: SB, SM. */
-.lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Bf -literal, Bl -literal, Bl -unfilled. */
+.lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
/* Block modes. */
diff --git a/mdoc_html.c b/mdoc_html.c
index bde42bc3..966e2c44 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -2219,7 +2219,11 @@ mdoc_quote_pre(MDOC_ARGS)
print_text(h, "(");
break;
case (MDOC_Ql):
- /* FALLTHROUGH */
+ print_text(h, "\\(oq");
+ h->flags |= HTML_NOSPACE;
+ PAIR_CLASS_INIT(&tag, "lit");
+ print_otag(h, TAG_CODE, 1, &tag);
+ break;
case (MDOC_So):
/* FALLTHROUGH */
case (MDOC_Sq):
diff --git a/style.css b/style.css
index a0cfb811..dcc49a7c 100644
--- a/style.css
+++ b/style.css
@@ -38,7 +38,7 @@ i { } /* Italic: BI, IB, I, (implicit). */
b { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
.symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
small { } /* Small: SB, SM. */
-.lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Bf -literal, Bl -literal, Bl -unfilled. */
+.lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
/* Block modes. */