It looks like \code works, but the whole <pre> is one cell in a table, and 
\code adds a box so it looks a little odd.

If there were a way to specify a title for a \code block, I could remove the 
table and just use \code.


-----Original Message-----
From: damon_car...@ltxc.com [mailto:damon_car...@ltxc.com] 
Sent: Monday, July 09, 2012 10:23 AM
To: Broida, Michael
Cc: doxygen-users@lists.sourceforge.net
Subject: Re: [Doxygen-users] Bug: <list> inside <pre> generates bad html

I use \code and \endcode rather than <pre> and </pre> in that case and it
works fine.
- Damon


| From:      |
|<michael.bro...@thomsonreuters.com>                                            
                                                          
| To:        |
|<doxygen-users@lists.sourceforge.net>                                          
                                                          |
| Date:      |
  |07/09/2012 11:15 AM                                                          
                                                            |
| Subject:   |
  |[Doxygen-users] Bug: <list> inside <pre> generates bad html                  
                                                            |


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.:

Tested on:
        MSIE 8
        Google Chrome 20.0.1132.47m
        Firefox 13.0.1

                Mike



This email was sent to you by Thomson Reuters, the global news and
information company. Any views expressed in this message are those of the
individual sender, except where the sender specifically states them to be
the views of Thomson Reuters.
------------------------------------------------------------------------------

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



This email was sent to you by Thomson Reuters, the global news and information 
company. Any views expressed in this message are those of the individual 
sender, except where the sender specifically states them to be the views of 
Thomson Reuters.

------------------------------------------------------------------------------
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