removed converting # and ~ to super/subscript commands in RO values

replace # and ~ with super/subscript commands, only done for ROs in Word attachments
This commit is contained in:
2012-01-11 16:49:29 +00:00
parent edf7c15dbb
commit a72f752b60
2 changed files with 6 additions and 2 deletions

View File

@@ -796,6 +796,9 @@ namespace VEPROMS.CSLA.Library
//string tmp = DisplayRO.ConvertFortranFormatToScienctificNotation(roValue);
string tmp = ROFSTLookup.ConvertFortranFormatToScienctificNotation(roValue);
// Only in Word sections, convert the # to superscripts and ~ to subscrtipts
tmp = Regex.Replace(tmp, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript
tmp = Regex.Replace(tmp, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript
// 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