diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-05-16 23:16:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-05-16 23:16:23 +0000 |
commit | 274991700c5f6c93939fded8d93e1480a10ff658 (patch) | |
tree | ab8f59b5be036e8b854f18cb14483c98b9dc3ede /usr.bin/mandoc | |
parent | 423eccb2f84e86cb41737cc5f8da7772531a380e (diff) |
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 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/tbl_html.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/tbl_html.c b/usr.bin/mandoc/tbl_html.c index ab5a6b911cc..4dda78a49c9 100644 --- a/usr.bin/mandoc/tbl_html.c +++ b/usr.bin/mandoc/tbl_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tbl_html.c,v 1.29 2021/05/16 18:08:37 schwarze Exp $ */ +/* $OpenBSD: tbl_html.c,v 1.30 2021/05/16 23:16:22 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014,2015,2017,2018,2021 Ingo Schwarze <schwarze@openbsd.org> @@ -245,6 +245,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); } |