[BACK]Return to column.out_markdown CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / mdoc / Bl

File: [cvsweb.bsd.lv] / mandoc / regress / mdoc / Bl / column.out_markdown (download)

Revision 1.3, Thu Jul 11 17:06:18 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD
Changes since 1.2: +1 -1 lines

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@).

BL-COLUMN(1) - General Commands Manual

# NAME

**Bl-column** - lists with multiple columns

# DESCRIPTION

	a

	a    b

	a    b    cc  
	a    b    cc  
	a    b    cc  
	a    b    cc  
	a    b    cc

	a    b    cc    d

	a   b   cc   d   e

	5 + 35 + 4 + 34 = 78:

	x35xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    x34xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
	a                                      b

	5 + (22+4)*2 + 21 = 78:

	x22xxxxxxxxxxxxxxxxxxx    x22xxxxxxxxxxxxxxxxxxx    x21xxxxxxxxxxxxxxxxxx  
	a                         b                         c

	5 + 16 + (4+15)*3 = 78:

	x16xxxxxxxxxxxxx    x15xxxxxxxxxxxx    x15xxxxxxxxxxxx    x15xxxxxxxxxxxx  
	a                   b                  c                  d

	5 + 13 + (3+12)*4 = 78:

	x13xxxxxxxxxx   x12xxxxxxxxx   x12xxxxxxxxx   x12xxxxxxxxx   x12xxxxxxxxx  
	a               b              c              d              e

	a       b  
	a       b  
	a       b  
	a       b  
	a       b  
	a       b

	a  
	a    b  
	a    b    c  
	a    b    c d  
	a    b    c d e

	a    b    c    d  
	a    b    c    d  
	a    b    c    d  
	a    b    c    d  
	a    b    c    d  
	a    b    c    d  
	a    b    c    d  
	a    b    c    d

	aa    OpenBSD OpenBSD OpenBSD    tab-tab  
	aa    OpenBSD OpenBSD Ox         tab-ta  
	aa    Ox OpenBSD OpenBSD         ta-tab  
	aa    Ox OpenBSD Ox              ta-ta  
	aa    Ox OpenBSD OpenBSD         ta-bl/ta  
	aa     OpenBSD OpenBSD Ox        ta/bl-ta  
	aa     OpenBSD OpenBSD OpenBSD   ta/bl-bl/ta  
	aa    bb                         ta at eol  
	aa    bb                         
	tab at eol

	aa    bb    cc    dd

OpenBSD - July 11, 2019