summaryrefslogtreecommitdiffstats
path: root/tbl_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-05-16 23:18:35 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-05-16 23:18:35 +0000
commit9480da153087d5a237b7dafa2edbe172e9db2f0d (patch)
treebc9642cabc6e9430f62bcbfc2b932ffd59bf2bc7 /tbl_html.c
parentb2f8ea106cefcd6068453195e6df664cbb20d8b4 (diff)
downloadmandoc-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tbl_html.c b/tbl_html.c
index 16257df8..0b18a1b0 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -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);
}