Fixed logic to handle Fortran Formatted Numbers in word documents
Added StepLevel property to ItemInfo Added StepLevel debug
This commit is contained in:
@@ -614,10 +614,10 @@ namespace VEPROMS.CSLA.Library
|
||||
// Look for superscript or subscript and insert the appropriate commands
|
||||
//Match roMatch = Regex.Match(tmp, @"(.*?)\\(super|sub) (.*?)\\nosupersub ");
|
||||
Match roMatch = Regex.Match(tmp, @"(.*?)\\(up3|dn3) (.*?)\\(up0|dn0) ");
|
||||
if (roMatch.Groups.Count == 4)// Superscript or subscript found
|
||||
if (roMatch.Groups.Count == 5)// Superscript or subscript found
|
||||
{
|
||||
sel.Font.Color = LBWdColor.wdColorRed;
|
||||
while (roMatch.Groups.Count == 4)
|
||||
while (roMatch.Groups.Count == 5)
|
||||
{
|
||||
sel.TypeText(roMatch.Groups[1].Value); // output the text preceeding the super or sub command
|
||||
sel.Font.Position = roMatch.Groups[2].Value == "up3" ? 2 : -2; // Shift the vertical position for super or sub
|
||||
|
Reference in New Issue
Block a user