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

Pod::Block::Table node caption property is not populated properly #4776

Closed
p6rt opened this issue Nov 26, 2015 · 4 comments
Closed

Pod::Block::Table node caption property is not populated properly #4776

p6rt opened this issue Nov 26, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 26, 2015

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

Searchable as RT126740$

@p6rt
Copy link
Author

p6rt commented Nov 26, 2015

From @autarch

Given this code​:

=begin pod

=begin table :caption('My caption')

  Title | Name | Size
  ==========================
  Captain | Jane | Medium
  Clerk | Bob | Large

=end table

=end pod

dd $=pod[0];

Here is the output of the code above​:

Pod​::Block​::Named $var = Pod​::Block​::Named.new(name => "pod", config => {}, contents => [Pod​::Block​::Table.new(caption => Any, headers => ["Title", "Name", "Size"], config => {​:caption("'My caption'")}, contents => [["Captain", "Jane", "Medium"], ["Clerk", "Bob", "Large"]])])

I would expect that the Pod​::Block​::Table node would have a caption. The caption ends up in $node.config<caption>, but not $node.caption.

@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

From @AlexDaniel

Fixed in rakudo/rakudo@2cd266f

Tests in Raku/roast@3ae2640 and Raku/roast@bc48eed

tbrowder++

On 2015-11-26 11​:33​:47, autarch wrote​:

Given this code​:

=begin pod

=begin table :caption('My caption')

Title | Name | Size

Captain | Jane | Medium
Clerk | Bob | Large

=end table

=end pod

dd $=pod[0];

Here is the output of the code above​:

Pod​::Block​::Named $var = Pod​::Block​::Named.new(name => "pod", config
=> {}, contents => [Pod​::Block​::Table.new(caption => Any, headers =>
["Title", "Name", "Size"], config => {​:caption("'My caption'")},
contents => [["Captain", "Jane", "Medium"], ["Clerk", "Bob",
"Large"]])])

I would expect that the Pod​::Block​::Table node would have a caption.
The caption ends up in $node.config<caption>, but not $node.caption.

@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Dec 11, 2017
@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

@AlexDaniel - Status changed from 'open' 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