Fixed problem with a negative value in a scientific notation RO value

Added logic to support an Indented Paragraph (Comanche Peak)
This commit is contained in:
2013-10-10 20:02:22 +00:00
parent 16cf8c0366
commit ff6e3626c4
2 changed files with 11 additions and 6 deletions

View File

@@ -1246,6 +1246,8 @@ namespace VEPROMS.CSLA.Library
tmp = tmp.Replace(@"\u160?", "\xA0");
tmp = tmp.Replace(@"\U160?", "\xA0");
tmp = tmp.Replace(@"[xB3]", "\xB3");
tmp = tmp.Replace(@"\U8209?", "-"); // fixes negative value in scienctific notation
tmp = tmp.Replace(@"\u8209?", "-");
// Look for superscript or subscript and insert the appropriate commands
Match roMatch = Regex.Match(tmp, @"(.*?)\\(up2|dn2) (.*?)\\(up0|dn0) ");
if (roMatch.Groups.Count == 5)// Superscript or subscript found