On 10/25/2012 08:07 AM, Hussein Shafie wrote:
> On 10/25/2012 01:53 PM, Stefan Seefeld wrote:
>> Hello,
>>
>> I realize that this may be the wrong list for the question, but...:
>>
>> I'd like to put pseudo-code into a block of MathML. The code contains a
>> couple of newlines as well as indentation (i.e. semantic whitespace).
>> Any idea how to do that ? It seems m:mtext elements don't preserve
>> whitespace.
> 
> According to the standard:
> ---
> An mtext element can be used to contain "renderable whitespace"
> ---
> See http://www.w3.org/TR/MathML2/chapter3.html#presm.mtext
> 
> However please note that XMLmind XML Editor cannot fold MathML lines.
> Therefore, even if you manage to add newlines to an m:text, you'll not
> see them is XMLmind XML Editor.

Thanks. I found the above spec, but found the required use of entities a
little cumbersome. But I also had overlooked the m:mspace element, which
looks like it's a good fit for my use.

Thanks for your help !

                Stefan


-- 
Stefan Seefeld
Mentor Graphics
[email protected]
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to