diff options
author | 2011-08-26 09:03:17 +0000 | |
---|---|---|
committer | 2011-08-26 09:03:17 +0000 | |
commit | 56e9fd9489f025ce2c5f63c35985359301a848f3 (patch) | |
tree | cf063a1c738b6a0999ca3444212c4ae0aa3fcc86 | |
parent | 59bffa3293ec530448f191a098b008b2ed0e1ca4 (diff) | |
download | mandoc-56e9fd9489f025ce2c5f63c35985359301a848f3.tar.gz mandoc-56e9fd9489f025ce2c5f63c35985359301a848f3.tar.zst mandoc-56e9fd9489f025ce2c5f63c35985359301a848f3.zip |
Make sure that `Ql' literalises its arguments in -T[x]html. Found when
doing manpages.bsd.lv stuff.
-rw-r--r-- | example.style.css | 4 | ||||
-rw-r--r-- | mdoc_html.c | 8 | ||||
-rw-r--r-- | style.css | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/example.style.css b/example.style.css index c80b929b..9131ff20 100644 --- a/example.style.css +++ b/example.style.css @@ -1,4 +1,4 @@ -/* $Id: example.style.css,v 1.45 2011/08/18 09:16:01 kristaps Exp $ */ +/* $Id: example.style.css,v 1.46 2011/08/26 09:03:17 kristaps Exp $ */ /* * This is an example style-sheet provided for mandoc(1) and the -Thtml @@ -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 f33a438b..b1652f0d 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.177 2011/08/18 09:16:01 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.178 2011/08/26 09:03:17 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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): @@ -1,4 +1,4 @@ -/* $Id: style.css,v 1.24 2011/08/18 09:16:01 kristaps Exp $ */ +/* $Id: style.css,v 1.25 2011/08/26 09:03:17 kristaps Exp $ */ /* * This is an example style-sheet provided for mandoc(1) and the -Thtml @@ -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. */ |