Subject: | Textile Output Test Failure |
Hello there. Thanks for Template::Plugin::Textile. Unfortunately I get test failures when trying to install it. Also unfortunately I'm not yet familiar enough with Template Toolkit to coax the test harness into giving details of the output that didn't match, but I installed the module despite the test failures and have tried simulating them by hand.
The first test is this:
this is _like_ *so* *cool*
for which the expected output is:
<p>this is <em>like</em> <strong>so* *cool</strong></p>
but the actual output is:
<p>this is <em>like</em> <strong>so</strong> <strong>cool</strong></p>
I'd never heard of Textile till I saw this module, and detailed documentation on its syntax seems to be scarce, but the actual output looks plausible to me. Perhaps this is something which has changed in Text::Textile since you first released Template::Plugin::Textile?
The second test fails because the actual output has two blank lines between the end of the paragraph and the start of the list. I can think of no good reason for having multiple blank lines, but it does seem to be what Text::Textile emits.
The third test fails because the actual output has <br /> tags in it at the start and end. Starting the first word ("The") immediately after the [% BLOCK %] tag, and having the closing [% END %] tag immediately after the last word ("2002") fixes this. But having to do that is tedious and irritating, and makes the template source less readable. I think I've seen a TT option somewhere for supressing whitespace (but haven't investigated it yet); perhaps that would help?
Cheers.
Smylers