help / color / mirror / Atom feed
* mandoc: Implement the layout specification "a" (left justify with 1em
@ 2021-05-16 23:19 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2021-05-16 23:19 UTC (permalink / raw)
  To: source

Log Message:
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.

Modified Files:

Revision Data
Index: tbl_html.c
RCS file: /home/cvs/mandoc/mandoc/tbl_html.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -Ltbl_html.c -Ltbl_html.c -u -p -r1.34 -r1.35
--- tbl_html.c
+++ tbl_html.c
@@ -247,6 +247,8 @@ print_tbl(struct html *h, const struct t
 				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);
 To unsubscribe send an email to

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-16 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16 23:19 mandoc: Implement the layout specification "a" (left justify with 1em schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).