This commit is contained in:
Kathy Ruffing 2011-01-19 16:03:56 +00:00
parent 28325bb22d
commit ef377284ca

View File

@ -215,9 +215,17 @@ namespace DataLoader
public static string ConvertDOSSuperAndSubScripts(string instr)
{
string retval = Regex.Replace(instr, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript
retval = Regex.Replace(retval, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript
return retval;
try
{
string retval = Regex.Replace(instr, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript
retval = Regex.Replace(retval, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript
return retval;
}
catch (Exception ex)
{
Console.WriteLine("Error in ConvertDOSSuperAndSubScripts");
}
return "";
}
private static string FixFortranNumber(Match match)
{