This commit is contained in:
parent
dbba029be1
commit
d7a93e0a73
@ -199,7 +199,7 @@ namespace fmtxml
|
||||
}
|
||||
private static void AddAbsolute(StringBuilder sb, string text)
|
||||
{
|
||||
// May need to do something with this
|
||||
sb.Append(" <desc>ABSOLUTE</desc>");
|
||||
}
|
||||
private static void AddRtfAdj(StringBuilder sb, string text)
|
||||
{
|
||||
@ -226,11 +226,7 @@ namespace fmtxml
|
||||
private static void AddText(StringBuilder sb, string text)
|
||||
{
|
||||
Match textMatch = regText.Match(text);
|
||||
//if (!_FontStyles.Contains(textMatch.Groups[5].Value))
|
||||
//{
|
||||
// Console.WriteLine("{0} - {1}", textMatch.Groups[5].Value, file.Name);
|
||||
// _FontStyles.Add(textMatch.Groups[5].Value);
|
||||
//}
|
||||
|
||||
sb.Append(string.Format(" <text x=\"{0}\" y=\"{1}\" font-family=\"{3}\" font-size=\"{2}\" {4}>{5}</text>\r\n",
|
||||
TwipsToPoints(textMatch.Groups[1].Value),
|
||||
TwipsToPoints(textMatch.Groups[2].Value),
|
||||
@ -334,7 +330,14 @@ namespace fmtxml
|
||||
FileInfo outFile = new FileInfo(svgFileName);
|
||||
if (outFile.Exists) outFile.Delete();
|
||||
XmlDocument xDoc = new XmlDocument();
|
||||
xDoc.LoadXml(Svg);
|
||||
try
|
||||
{
|
||||
xDoc.LoadXml(Svg);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("ex = {0}", ex);
|
||||
}
|
||||
AppendPlantSpecific(svgFileName, xDoc);
|
||||
xDoc.Save(outFile.FullName);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user