summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-19 22:00:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-19 22:00:37 +0000
commita32978d2cad8df466fc1ad27d42e6aff9ce25c9b (patch)
treec714612c5e85e550a2442a25bf4b1039e2c6cb8b /mdoc_html.c
parente83d3f1920808345008b02a30870871c3f4e489d (diff)
downloadmandoc-a32978d2cad8df466fc1ad27d42e6aff9ce25c9b.tar.gz
Let .Ao and .Aq render as "<>" after .An and as "\(la\(ra" elsewhere,
just like groff; minibug noticed by bentley@.
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 c64d38c4..2f561b6f 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -2075,7 +2075,8 @@ mdoc_quote_pre(MDOC_ARGS)
case MDOC_Ao:
/* FALLTHROUGH */
case MDOC_Aq:
- print_text(h, "\\(la");
+ print_text(h, n->parent->prev != NULL &&
+ n->parent->prev->tok == MDOC_An ? "<" : "\\(la");
break;
case MDOC_Bro:
/* FALLTHROUGH */
@@ -2151,7 +2152,8 @@ mdoc_quote_post(MDOC_ARGS)
case MDOC_Ao:
/* FALLTHROUGH */
case MDOC_Aq:
- print_text(h, "\\(ra");
+ print_text(h, n->parent->prev != NULL &&
+ n->parent->prev->tok == MDOC_An ? ">" : "\\(ra");
break;
case MDOC_Bro:
/* FALLTHROUGH */