Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table handling should ensure table rows have the same number of cells even if they are empty #6627

Closed
p6rt opened this issue Oct 21, 2017 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 21, 2017

Migrated from rt.perl.org#132341 (status was 'resolved')

Searchable as RT132341$

@p6rt
Copy link
Author

p6rt commented Oct 21, 2017

From @tbrowder

Consider the following pod 6 tables​:

=begin table
a | b | c
m | n | o
x | y
=end table

my $r = $=pod[0];
is $r.contents.elems, 3;
is $r.contents[0].join(','), 'a,b,c'; # 3 cells
is $r.contents[1].join(','), 'l,m,n'; # 3 cells
is $r.contents[2].join(','), 'x,y'; # 2 cells; should change to
"x,y," after a fix for this bug (3 cells vs 2)

=table
  X | O |
  ---+---+---
  | X | O
  ---+---+---
  | | X

$r = $=pod[1];
is $r.contents.elems, 3;
is $r.contents[0].join(','), 'X,O'; # 2 cells; should change to
"X,O," after a fix for this bug (3 cells vs 2)
is $r.contents[1].join(','), ',X,O'; # 3 cells
is $r.contents[2].join(','), ',,X'; # 3 cells

@p6rt
Copy link
Author

p6rt commented Nov 30, 2017

From @tbrowder

Fixed by PR #​1240.

@p6rt p6rt closed this as completed Nov 30, 2017
@p6rt
Copy link
Author

p6rt commented Nov 30, 2017

@tbrowder - Status changed from 'new' to 'resolved'

@p6rt p6rt added the POD label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant