Step transitions to another Section were being output as Section 3.0 Step 3.4. This change causes the code to output Step 3.4.

This commit is contained in:
Rich 2016-09-26 20:36:24 +00:00
parent b6c4258262
commit 645dd85bf7

View File

@ -754,7 +754,7 @@ namespace VEPROMS.CSLA.Library
{ {
return GetResolvedText(fromInfo.ActiveFormat, fromInfo, tranType, toItem, rangeItem, hasPageNum); return GetResolvedText(fromInfo.ActiveFormat, fromInfo, tranType, toItem, rangeItem, hasPageNum);
} }
private static Regex RegFixVCS = new Regex(@"Section ([0-9.]+) Step \1"); // Find Section xxx followed by Step xxx private static Regex RegFixVCS = new Regex(@"Section ([0-9.]+)(.0)? Step \1"); // Find Section xxx followed by Step xxx
public static string GetResolvedText(FormatInfo formatInfo, ItemInfo fromInfo, int tranType, ItemInfo toItem, ItemInfo rangeItem, bool pagenum) public static string GetResolvedText(FormatInfo formatInfo, ItemInfo fromInfo, int tranType, ItemInfo toItem, ItemInfo rangeItem, bool pagenum)
{ {
if (!pagenum) if (!pagenum)