summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-04-21 17:27:45 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-04-21 17:27:45 (GMT)
commitff31b2f109848ea3e08fb17d5821beb7af879193 (patch)
tree4859bfed167f695f5ce9e9c0f2f6f02313de2ed3 /src/xmlgen.cpp
parentbc629c9003d59b736cc996a05b95bac8ab50123a (diff)
downloadDoxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.zip
Doxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.tar.gz
Doxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.tar.bz2
Release-1.2.15-20020421
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp26
1 files changed, 19 insertions, 7 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index ad3cd72..691ae13 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -343,12 +343,23 @@ class XMLGenerator : public OutputDocInterface
{
XML_DB(("(startPreFragment)\n"));
startParMode();
- m_t << "<programlisting>";
+ m_t << "<preformatted>";
}
void endPreFragment()
{
XML_DB(("(endPreFragment)\n"));
- m_t << "</programlisting>";
+ m_t << "</preformatted>";
+ }
+ void startVerbatimFragment()
+ {
+ XML_DB(("(startVerbatimFragment)\n"));
+ startParMode();
+ m_t << "<preformatted>";
+ }
+ void endVerbatimFragment()
+ {
+ XML_DB(("(endVerbatimFragment)\n"));
+ m_t << "</preformatted>";
}
void writeRuler()
{
@@ -616,20 +627,21 @@ class XMLGenerator : public OutputDocInterface
startParMode();
m_t << "<table cols=\"" << cols << "\">\n";
}
- void endTable(bool)
+ void endTable(bool hasCaption)
{
XML_DB(("endTable\n"));
- m_t << "</row>\n</table>";
+ if (!hasCaption) m_t << "</row>\n";
+ m_t << "</table>";
}
void startCaption()
{
XML_DB(("startCaption"));
- m_t << "<caption>";
+ m_t << "</row><caption>";
}
void endCaption()
{
XML_DB(("encCaption"));
- m_t << "</caption";
+ m_t << "</caption>";
}
void nextTableRow()
{
@@ -639,7 +651,7 @@ class XMLGenerator : public OutputDocInterface
// we need manually add a para here because cells are
// parsed before the table is generated, and thus
// are already parsed as if they are inside a paragraph.
- m_t << "<para>";
+ //m_t << "<para>";
}
void endTableRow()
{