aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-19 01:00:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-19 01:00:14 +0000
commite73d0cb63df953bf695636bd8906deb316a6d718 (patch)
tree4bb6eb8a77bb9910bb56020230e368e58e5794f6 /mdoc_html.c
parentc1f44d16f40aa0b6a571293bf1153e34ca40bedf (diff)
downloadmandoc-e73d0cb63df953bf695636bd8906deb316a6d718.tar.gz
mandoc-e73d0cb63df953bf695636bd8906deb316a6d718.tar.zst
mandoc-e73d0cb63df953bf695636bd8906deb316a6d718.zip
Implement line breaking of the generated HTML code at space characters
in filled text. This does not affect HTML semantics, but makes the HTML code even more humanly readable. While here, - collapse multiple consecutive space characters in filled text - and insert a blank between style entries.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 112296e5..c62c8e9e 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.250 2017/01/18 19:22:22 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.251 2017/01/19 01:00:14 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -384,8 +384,6 @@ print_mdoc_node(MDOC_ARGS)
h->flags |= HTML_NOSPACE;
return;
case ROFFT_EQN:
- if (n->flags & NODE_LINE)
- putchar('\n');
print_eqn(h, n->eqn);
break;
case ROFFT_TBL: