This project has moved. For the latest updates, please go here.

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

Jan 4, 2013 at 11:59 PM
Edited Jan 5, 2013 at 12: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 2: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 10: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