diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-05-16 23:18:35 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-05-16 23:18:35 +0000 |
commit | 9480da153087d5a237b7dafa2edbe172e9db2f0d (patch) | |
tree | bc9642cabc6e9430f62bcbfc2b932ffd59bf2bc7 /tbl_html.c | |
parent | b2f8ea106cefcd6068453195e6df664cbb20d8b4 (diff) | |
download | mandoc-9480da153087d5a237b7dafa2edbe172e9db2f0d.tar.gz |
Implement the layout specification "a" (left justify with 1em indentation)
in HTML output mode; before this patch, the indentation was missing.
Terminal output already supported the "a" specifier since 2010.
Issue reported and patch tested by Oliver dot Corff at email dot de.
Diffstat (limited to 'tbl_html.c')
-rw-r--r-- | tbl_html.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -247,6 +247,8 @@ print_tbl(struct html *h, const struct tbl_span *sp) html_setfont(h, ESCAPE_FONTBOLD); else if (dp->layout->flags & TBL_CELL_ITALIC) html_setfont(h, ESCAPE_FONTITALIC); + if (dp->layout->pos == TBL_CELL_LONG) + print_text(h, "\\[u2003]"); /* em space */ print_text(h, dp->string); html_setfont(h, save_font); } |