diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-04 18:29:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-04 18:29:38 +0000 |
commit | fbcda63a2f8d075778d869bf8b5e39be061e27bb (patch) | |
tree | 5bb0253bb3dbcfa666663009fa8a9fdd8a9c2d3a /html.c | |
parent | a24643d57fc2cdc21c68043d490f2f5fbc830c24 (diff) | |
download | mandoc-fbcda63a2f8d075778d869bf8b5e39be061e27bb.tar.gz mandoc-fbcda63a2f8d075778d869bf8b5e39be061e27bb.tar.zst mandoc-fbcda63a2f8d075778d869bf8b5e39be061e27bb.zip |
HTML syntax audit: render \p as <br/>, not as <div>.
It can occur anywhere, in particular in phrasing context.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.244 2018/11/26 01:38:23 schwarze Exp $ */ +/* $Id: html.c,v 1.245 2018/12/04 18:29:38 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -357,7 +357,6 @@ static int print_encode(struct html *h, const char *p, const char *pend, int norecurse) { char numbuf[16]; - struct tag *t; const char *seq; size_t sz; int c, len, breakline, nospace; @@ -383,9 +382,7 @@ print_encode(struct html *h, const char *p, const char *pend, int norecurse) if (breakline && (p >= pend || *p == ' ' || *p == ASCII_NBRSP)) { - t = print_otag(h, TAG_DIV, ""); - print_text(h, "\\~"); - print_tagq(h, t); + print_otag(h, TAG_BR, ""); breakline = 0; while (p < pend && (*p == ' ' || *p == ASCII_NBRSP)) p++; |