Skip Menu |

This queue is for tickets about the Perl6-Perldoc CPAN distribution.

Report information
The Basics
Id: 81974
Status: resolved
Priority: 0/
Queue: Perl6-Perldoc

People
Owner: Nobody in particular
Requestors: LCONS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.000008
Fixed in: (no value)



Subject: Single row multi-line tables cannot be parsed correctly
There is a problem with the parsing of single row multi-line tables. Here is an example: Header1 | Header2 =================== =item X1 | =item A2 =item Y1 | =item B2 =item Z1 | This is ambiguous since it's not clear whether I want multiple rows or multiple lines inside a single row. The header is special as S26 says "Either style can also have an explicitly separated header row at the top" so the first separator is not enough to disambiguate. However, if I use: Header1 | Header2 =================== =item X1 | =item A2 =item Y1 | =item B2 =item Z1 | =================== then my intention is clear: I use an explicit separator for the rows so I do want one row only. S26 says "multiple lines per row with explicit horizontal separators [...] between every row" but since I only have one row (not counting the header) adding a final separator is the only way to disambiguate. So far so good but Perl6::Perldoc does not differentiate between the two tables above and always parses multiple single-line rows instead of a single multi-line row. The attached patch fixes the problem.
Subject: patch
Download patch
application/octet-stream 558b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #81974] Single row multi-line tables cannot be parsed correctly
Date: Sat, 15 Dec 2012 08:41:45 +1100
To: bug-Perl6-Perldoc [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Patch applied. Many thanks. Damian