From 3438a5cfefb69c7f5343ce1e20296f7b635cabce Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 11 Jul 2019 17:06:17 +0000 Subject: 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 "wordword" Ta word Macro 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@). --- regress/mdoc/Bl/column.out_ascii | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regress/mdoc/Bl/column.out_ascii') diff --git a/regress/mdoc/Bl/column.out_ascii b/regress/mdoc/Bl/column.out_ascii index 732cf2d9..6734c1a1 100644 --- a/regress/mdoc/Bl/column.out_ascii +++ b/regress/mdoc/Bl/column.out_ascii @@ -71,4 +71,4 @@ DDEESSCCRRIIPPTTIIOONN aa bb tab at eol aa bb cc dd -OpenBSD July 4, 2017 OpenBSD +OpenBSD July 11, 2019 OpenBSD -- cgit v1.2.3-56-ge451