melmothx / text-amuse

Text::Amuse parser
http://www.amusewiki.org
5 stars 2 forks source link

muse-compile.pl produces nothing if there is an empty heading #40

Closed link2xt closed 6 years ago

link2xt commented 6 years ago

How to reproduce: try to compile the following with muse-compile.pl 1.muse --html.

#title Bug

* Bug title

This text is not displayed

* <verbatim></verbatim>

ok

Only a horizontal rule is emitted, which separates footnotes. Adding anything into <verbatim> and recompiling fixes the bug.

melmothx commented 6 years ago

Alexander notifications@github.com writes:

Only a horizontal rule is emitted, which separates footnotes. Adding anything into and recompiling fixes the bug.

Yes, it's a crash in the parser as it assumes that the header returns a non-empty string. Normally doesn't happen, but the tag fools it.

I'm mumbling a fix, as there could be some side effects in the downstream.

Please note that "** ~" works fine for an empty header.

-- Marco

melmothx commented 6 years ago

See 217b91e

link2xt commented 6 years ago

Please note that "** ~" works fine for an empty header.

I don't really need empty headers, but pandoc produces this <verbatim></verbatim> when the source document has them.

See 217b91e

I have installed and tested the new version, it works. Thanks. Closing issue.