* mandoc: In a tbl(7) having the "nospaces" option, skip space characters
@ 2021-09-10 12:07 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2021-09-10 12:07 UTC (permalink / raw)
To: source
Log Message:
-----------
In a tbl(7) having the "nospaces" option, skip space characters
not only at the end of data cells, but also after "T}",
aligning the behaviour of the parser with GNU tbl(1).
Issue reported by <Oliver dot Corff at email dot de>.
Modified Files:
--------------
mandoc:
tbl_data.c
Revision Data
-------------
Index: tbl_data.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/tbl_data.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -Ltbl_data.c -Ltbl_data.c -u -p -r1.57 -r1.58
--- tbl_data.c
+++ tbl_data.c
@@ -200,6 +200,9 @@ tbl_cdata(struct tbl_node *tbl, int ln,
if (p[pos] == 'T' && p[pos + 1] == '}') {
pos += 2;
+ if (tbl->opts.opts & TBL_OPT_NOSPACE)
+ while (p[pos] == ' ')
+ pos++;
if (p[pos] == tbl->opts.tab) {
tbl->part = TBL_PART_DATA;
pos++;
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-10 12:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 12:07 mandoc: In a tbl(7) having the "nospaces" option, skip space characters 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).