From 613ecd478d46b97800b239078fb7fafbe31bf289 Mon Sep 17 00:00:00 2001 From: WandererFan Date: Fri, 26 Jan 2018 17:44:26 -0500 Subject: [PATCH] Relax regex for editable text in Template - the regex for finding editable text fields in the svg code of Templates was too strict and missed some fields if the svg had extra characters between & . --- src/Mod/TechDraw/App/DrawSVGTemplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.cpp b/src/Mod/TechDraw/App/DrawSVGTemplate.cpp index c8b97ef643..89c28b9121 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.cpp +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.cpp @@ -295,7 +295,7 @@ std::map DrawSVGTemplate::getEditableTextsFromTemplate tfile.close(); //this catches all the tags: //keep tagRegex in sync with Gui/QGISVGTemplate.cpp - boost::regex tagRegex ("]*freecad:editable=[^>]*)>[^<]*]*>([^<]*)"); + boost::regex tagRegex ("]*freecad:editable=[^>]*)>[^<]*]*>([^<]*)"); boost::regex nameRegex("freecad:editable=\"(.*?)\""); boost::regex valueRegex("(.*?)");