I'm using the \snippet examples.cpp xml_map::fixup
command in doxygen 1.8.14 to generate the following...
Which is derived from the following unit test code...
TEST_METHOD(fixup) {
/// [xml_map::fixup]
// The source xml, but with elements missing, unmapped elements,
// and elements in a different order than in the map.
std::string xml{
"<map>\n"
"\t<first_unmapped_element/>\n"
"\t<double_element/>\n"
"\t<second_unmapped_element/>\n"
"\t<bool_element/>\n"
"</map>\n"
};
xml::xml_map<map_elements> xml_map(xml, map);
// Mapped elements that are missing from the source xml are added, elements
// not mapped are removed, and elements are sorted according to their order in the map.
xml_map.fixup();
std::string expected_xml{
"<map>\n"
"\t<bool_element/>\n"
"\t<double_element/>\n"
"\t<array_element/>\n"
"</map>\n"
};
Assert::AreEqual(expected_xml.c_str(), xml_map.xml().c_str());
/// [xml_map::fixup]
}
The indentation is caused by the code being part of a unit test method, which is part of a unit test class, which is under a namespace, causing three levels of indentation before the meat of my snippet. Basically doxygen is reflecting the white space of the unit test method verbatim. I would like my doxygen output to look more like this...
I've looked through the doxygen documentation and I can't find if this is possible. Any hints or solutions are appreciated.