Update of /cvsroot/boost/boost/tools/quickbook/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27216/detail
Modified Files:
actions.cpp
Log Message:
wrap <author> in <authorgroup>
Index: actions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/detail/actions.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- actions.cpp 28 Feb 2007 10:20:37 -0000 1.49
+++ actions.cpp 8 May 2007 16:53:31 -0000 1.50
@@ -1014,10 +1014,10 @@
void xml_author::operator()(std::pair<std::string, std::string> const&
author) const
{
- out << " <author>\n"
- << " <firstname>" << author.first << "</firstname>\n"
- << " <surname>" << author.second << "</surname>\n"
- << " </author>\n";
+ out << " <author>\n"
+ << " <firstname>" << author.first << "</firstname>\n"
+ << " <surname>" << author.second << "</surname>\n"
+ << " </author>\n";
}
void xml_year::operator()(std::string const &year) const
@@ -1084,10 +1084,15 @@
<< " xmlns:xi=\"http://www.w3.org/2001/XInclude\">\n"
<< " <" << actions.doc_type << "info>\n";
- for_each(
- actions.doc_authors.begin()
- , actions.doc_authors.end()
- , xml_author(out));
+ if(actions.doc_authors.empty())
+ {
+ out << " <authorgroup>\n";
+ for_each(
+ actions.doc_authors.begin()
+ , actions.doc_authors.end()
+ , xml_author(out));
+ out << " </authorgroup>\n";
+ }
if (!actions.doc_copyright_holder.empty())
{
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs