[TechDraw] Simplify return logic
Easy warmup
This commit is contained in:
committed by
WandererFan
parent
17b457a783
commit
6df0a20214
@@ -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 ---------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user