This commit is contained in:
parent
28325bb22d
commit
ef377284ca
@ -215,9 +215,17 @@ namespace DataLoader
|
|||||||
|
|
||||||
public static string ConvertDOSSuperAndSubScripts(string instr)
|
public static string ConvertDOSSuperAndSubScripts(string instr)
|
||||||
{
|
{
|
||||||
string retval = Regex.Replace(instr, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript
|
try
|
||||||
retval = Regex.Replace(retval, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript
|
{
|
||||||
return retval;
|
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)
|
private static string FixFortranNumber(Match match)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user