[mapguide-commits] r9113 - trunk/Tools/Maestro/Maestro.Editors/Generic
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Jan 11 05:55:47 PST 2017
Author: jng
Date: 2017-01-11 05:55:47 -0800 (Wed, 11 Jan 2017)
New Revision: 9113
Modified:
trunk/Tools/Maestro/Maestro.Editors/Generic/XmlEditorCtrl.cs
Log:
Trim whitespace and null characters from XML content when assigning or formatting
Fixes #2589
Modified: trunk/Tools/Maestro/Maestro.Editors/Generic/XmlEditorCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Generic/XmlEditorCtrl.cs 2017-01-02 10:42:08 UTC (rev 9112)
+++ trunk/Tools/Maestro/Maestro.Editors/Generic/XmlEditorCtrl.cs 2017-01-11 13:55:47 UTC (rev 9113)
@@ -194,7 +194,7 @@
set
{
_origText = null;
- txtXmlContent.Text = value;
+ txtXmlContent.Text = value.Trim().Trim('\0');
FormatText();
}
}
@@ -301,7 +301,7 @@
doc.WriteTo(uw);
uw.Flush();
}
- txtXmlContent.Text = System.Text.Encoding.UTF8.GetString(ms.GetBuffer());
+ txtXmlContent.Text = System.Text.Encoding.UTF8.GetString(ms.GetBuffer()).Trim().Trim('\0');
}
}
More information about the mapguide-commits
mailing list