Getting the <pre> tag to work

14 views
Skip to first unread message

Alex Raichev

unread,
Jun 30, 2014, 4:45:32 AM6/30/14
to rap...@googlegroups.com
Hi all,

How do i get the <pre> tag to work in RapydML?  I'm trying to format a poem.

1. I tried

pre:
    "Roses are red,
     Violets are blue,
     I like ice cream"

but that didn't compile. I expected that, because i put line breaks between quotation marks.

2. Then i tried

poem = verbatim('<pre>', '</pre>')
poem:
    Roses are red,
    Violets are blue,
    I like ice cream

and that almost worked.  Problem is, i get extra whitespace in front of each line, because the compiled HTML indents the poem within the <pre> tag :-(

How can i format my poem without the excess indentation?

Thanks for your attention.
Alex

Reply all
Reply to author
Forward
0 new messages