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 |
Message body not shown because it is not plain text.