* mdocml: Ignore blank characters at the beginning of a conditional block,
@ 2015-06-27 13:29 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-06-27 13:29 UTC (permalink / raw)
To: source
Log Message:
-----------
Ignore blank characters at the beginning of a conditional block,
that is, after "\{".
Issue found by Markus <Waldeck at gmx dot de> in bash(1).
Modified Files:
--------------
mdocml:
roff.c
Revision Data
-------------
Index: roff.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/roff.c,v
retrieving revision 1.271
retrieving revision 1.272
diff -Lroff.c -Lroff.c -u -p -r1.271 -r1.272
--- roff.c
+++ roff.c
@@ -2265,6 +2265,8 @@ roff_cond(ROFF_ARGS)
if (buf->buf[pos] == '\\' && buf->buf[pos + 1] == '{') {
r->last->endspan = -1;
pos += 2;
+ while (buf->buf[pos] == ' ')
+ pos++;
goto out;
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-27 13:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-27 13:29 mdocml: Ignore blank characters at the beginning of a conditional block, 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).