diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-19 01:00:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-19 01:00:14 +0000 |
commit | e73d0cb63df953bf695636bd8906deb316a6d718 (patch) | |
tree | 4bb6eb8a77bb9910bb56020230e368e58e5794f6 /man_html.c | |
parent | c1f44d16f40aa0b6a571293bf1153e34ca40bedf (diff) | |
download | mandoc-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 'man_html.c')
-rw-r--r-- | man_html.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.124 2017/01/18 19:22:22 schwarze Exp $ */ +/* $Id: man_html.c,v 1.125 2017/01/19 01:00:14 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -215,8 +215,6 @@ print_man_node(MAN_ARGS) print_text(h, n->string); return; case ROFFT_EQN: - if (n->flags & NODE_LINE) - putchar('\n'); print_eqn(h, n->eqn); break; case ROFFT_TBL: |