On Jul 9, 2012, at 17:13 , <michael.bro...@thomsonreuters.com> 
<michael.bro...@thomsonreuters.com> wrote:

> In a \page chunk of documentatation, I have a block of XML that I want to 
> quote exactly.  So I use the <pre> and </pre> HTML tags.
>  
> But inside that block of XML, there are <list> and </list> tags.  When 
> Doxygen processes the <pre> block, it replaces each occurrence of <list> with:
>         <ul></ul>
> At each occurrence of </list>, it closes the <pre> and all other open HTML 
> tags (from before the <pre> tag), and inserts:
>         </li></ul>
> then it reopens the <pre> tag, puts in the rest of my <pre> block, then 
> closes the <pre> tag again.
>  
> That is very wrong.  I would expect Doxygen to change all the < chars to &lt; 
> and all the > chars to &gt; in that <pre> block, but not to change ANYTHING 
> else.
>  
> Except for those <list> and </list> tags, it does exactly that.
>  
> If I escape the <> chars in those <list> and </list> tags, Doxygen changes 
> them to:
>         &lt;list&gt;
> and     &lt;/list&gt;
> That matches all the other < to &lt; and > to &gt; mods.
>  
> But I should not have to escape anything; <pre> should leave everything 
> untouched.

No, <pre> just preserves spaces, all other processing is still being done.
What you are looking for is \verbatim .. \endverbatim.
Or in case MARKDOWN_SUPPORT is enabled you can also indent the whole block 
with at least 4 spaces relative to the rest of the comment.

Regards,
  Dimitri


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to