const auto comment = fmt::format("Title: {} Pages: 1", graphviz_id);
output += fmt::format("<!-- {} -->\n", xml_encode(comment));
}
+ if (type == SVG::SVGElementType::Group &&
+ (attributes.class_ == "node" || attributes.class_ == "edge")) {
+ const auto comment = graphviz_id;
+ output += fmt::format("<!-- {} -->\n", xml_encode(comment));
+ }
output += "<";
output += tag(type);
}
CHECK(recreated_svg.find("<polygon/>") != std::string::npos);
CHECK(recreated_svg.find("<path/>") != std::string::npos);
+ CHECK(recreated_svg.find("<!-- a -->") != std::string::npos);
+ CHECK(recreated_svg.find("<!-- b -->") != std::string::npos);
+ CHECK(recreated_svg.find("<!-- a->b -->") != std::string::npos);
}
}