|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66112 - sandbox/geometry/other/programs/doxygen_xml2qbk
From: mateusz_at_[hidden]
Date: 2010-10-19 19:51:00
Author: mloskot
Date: 2010-10-19 19:50:59 EDT (Tue, 19 Oct 2010)
New Revision: 66112
URL: http://svn.boost.org/trac/boost/changeset/66112
Log:
[geometry] Handle more than one <para> under <detaileddescription> to allow generating multi-paragraph detailed description of documented types and functions.
Text files modified:
sandbox/geometry/other/programs/doxygen_xml2qbk/doxygen_xml2qbk.cpp | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
Modified: sandbox/geometry/other/programs/doxygen_xml2qbk/doxygen_xml2qbk.cpp
==============================================================================
--- sandbox/geometry/other/programs/doxygen_xml2qbk/doxygen_xml2qbk.cpp (original)
+++ sandbox/geometry/other/programs/doxygen_xml2qbk/doxygen_xml2qbk.cpp 2010-10-19 19:50:59 EDT (Tue, 19 Oct 2010)
@@ -143,8 +143,8 @@
bool unique;
function()
- : unique(true)
- , type(function_unknown)
+ : type(function_unknown)
+ , unique(true)
{}
};
@@ -328,8 +328,19 @@
std::string name = node->name();
std::string full = parent + "." + name;
- if (full == ".briefdescription.para") el.brief_description = node->value();
- else if (full == ".detaileddescription.para") el.detailed_description = node->value();
+ if (full == ".briefdescription.para")
+ {
+ el.brief_description = node->value();
+ }
+ else if (full == ".detaileddescription.para")
+ {
+ std::string const para(node->value());
+ if (!para.empty() && !el.detailed_description.empty())
+ {
+ el.detailed_description += "\n\n";
+ }
+ el.detailed_description += node->value();
+ }
else if (full == ".location")
{
std::string loc = get_attribute(node, "file");
@@ -580,6 +591,9 @@
}
}
break;
+ case function_unknown :
+ // do nothing
+ break;
}
if (! f.argsstring.empty())
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk