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:
@@ -937,8 +937,9 @@ namespace VEPROMS.CSLA.Library
|
||||
// ([+-]?|\\u8209\?) either an optional single character Plus (+) or Minus (-) or non-breaking dash (\u8209?)
|
||||
// ([0-9]+) a group of at least one digits
|
||||
string retval = Regex.Replace(str, @"([+-]?|\\u8209\?)([0-9]+)[.]([0-9]*?)0*E([+-]?|\\u8209\?)([0-9]+)", new MatchEvaluator(FixFortranNumber));
|
||||
retval = Regex.Replace(retval, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript
|
||||
retval = Regex.Replace(retval, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript
|
||||
// don't convert # and ~ to super/subscripts, this is a DOS holdout and is done only for non-procedure step sections
|
||||
//retval = Regex.Replace(retval, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript
|
||||
//retval = Regex.Replace(retval, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript
|
||||
return retval;
|
||||
}
|
||||
private static string FixFortranNumber(Match match)
|
||||
|
Reference in New Issue
Block a user