tags:

views:

30

answers:

1

I'm using Text::MultiMarkdown to print from Perl to HTML.

I would like to create a table where some of the cells contain a few strings, each in a separate line within the cell (see "four five six" in the picture below).sample table

Can I do that?

+2  A: 

Text::MultiMarkdown passes some HTML straight through so you can use <br> tags:

print Text::MultiMarkdown::markdown(q{
Header 1 | Header 2
-------- | ---------------------------
One line | First line<br />Second line
});

Produces a table body like this:

<tr>
    <td>One line</td>
    <td>First line<br />Second line</td>
</tr>

Which seems to be what you're looking for.

mu is too short
+1 using HTML directly is kind'a ugly but works...
David B