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
Compiler does not parse [POD] =defn block correctly #4752
Comments
From @autarch
Given this code: =begin pod =defn Item =end pod dd $=pod; I note that the "Item" text is gone entirely. It looks like the parser is Cheers, -dave /*============================================================ |
From @autarch
Actually, looking more close, it's not gone, it's simply indistinguishable from the next line. This means that there's no way to tell the item text from the definition text. |
From @autarchWhat I did ... run this code: =begin pod =defn Item =end pod dd $=pod; What I got: Array What I expected: I'd expect the text on the "=defn" line to be distinguished from the text on the next line (item vs definition). The simplest way would be to simply make the Named block's contents attribute contain multiple items. However, a better fix IMO would be to introduce a new class, Pod::Block::Defn, with an additional attribute like "term" or "item", and then contents would just contain the next line. |
Migrated from rt.perl.org#126651 (status was 'new')
Searchable as RT126651$
The text was updated successfully, but these errors were encountered: