[TechDraw] Simplify return logic

Easy warmup
This commit is contained in:
Benjamin Bræstrup Sayoc
2023-04-09 18:31:06 +02:00
committed by WandererFan
parent 17b457a783
commit 6df0a20214
25 changed files with 53 additions and 106 deletions

View File

@@ -124,16 +124,14 @@ App::DocumentObjectExecReturn *DrawViewDraft::execute()
std::string DrawViewDraft::getSVGHead()
{
std::string head = std::string("<svg\\n") +
std::string(" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\\n") +
std::string(" xmlns:freecad=\"http://www.freecadweb.org/wiki/index.php?title=Svg_Namespace\">\\n");
return head;
return std::string("<svg\\n") +
std::string(" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\\n") +
std::string(" xmlns:freecad=\"http://www.freecadweb.org/wiki/index.php?title=Svg_Namespace\">\\n");
}
std::string DrawViewDraft::getSVGTail()
{
std::string tail = "\\n</svg>";
return tail;
return "\\n</svg>";
}
// Python Drawing feature ---------------------------------------------------------