projectmallard / mallard-ducktype

Parser for the lightweight Ducktype syntax for Mallard
MIT License
10 stars 4 forks source link

Code verbatim content is not outputted if another code block exists in a second section #2

Closed pwithnall closed 9 years ago

pwithnall commented 9 years ago

Test case:

= Multi-code test

== Some title

[code]
  Some code

== Some other title

[code]
  Some other code
shaunix commented 9 years ago

Playing with this some, I think the [code] in the second second is a red herring. The first [code] is still empty if the second section has different contents. And the first [code] is correct if you put a paragraph after it. I think the actual culprit is that the [code] is effectively terminated by the section title. Probably not correctly pushing block values (using DuckParser._push_value) in that code path.