diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-11 17:06:17 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-11 17:06:17 +0000 |
commit | 1f0bb6771eec829cff55c66f3cff4e6db37e950b (patch) | |
tree | 58b97a16603bac5ab704f52d4b3c8a1e8929c02d /test-strptime.c | |
parent | 508b98ccbdcc989c0a185288f3b8f4b756310216 (diff) | |
download | mandoc-1f0bb6771eec829cff55c66f3cff4e6db37e950b.tar.gz |
When parsing a tab character that is not preceded by a space character
on an .It -column line, args() sets the MDOC_PHRASEQL flag to Quote
the Last word of the Phrase. Even if it turns out this quoting is not
needed because the word is already quoted for other reasons, clear the
flag at the end of parsing the phrase, such that the flag does not leak
to the next phrase.
This patch fixes the bug that the trailing Macro on a line of the form
.It "word<tab>word" Ta word Macro<eol>
was incorrectly considered quoted and hence not parsed.
Bug found by Havard Eidnes (he@) with the NetBSD gettytab(5) manual page:
https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54361
Reported via Thomas Klausner (wiz@).
Diffstat (limited to 'test-strptime.c')
0 files changed, 0 insertions, 0 deletions