This project has moved and is read-only. For the latest updates, please go here.

Line break in MAML <para></para> block?

Jan 5, 2013 at 12:59 AM
Edited Jan 5, 2013 at 1:00 AM

Hello. I've been looking around and I can't seem to induce a line break/new line in a <para></para> block. I've tried to the following but it didn't work:

Line 1 text. <lineBreak/>
Line2 text. <lineBreak/>

Is there a trrick to doing this? Thanks in advance. 

Jan 5, 2013 at 3:23 AM

There isn't a lineBreak element though one could be added.  I'm not sure its really needed.  Simply doing the following would achieve the same results though with paragraph spacing:

<para>Line 1 text</para>

<para>Line 2 text</para>

If your intent is to show some arbitrarily formatted text in a block, you could use the code element with a language of "none".



Jan 15, 2015 at 11:36 AM
You could use the markup element with a br element inside it.

That worked for me using Sandcastle.
I don't know whether this will work with other maml as well.
    Line 1 text<markup><br/></markup>
    Line 2 text