For tab comparison, trim strings before doing comparison in code that determines whether subsection number is derived from section number (IsSubsectionNumber)
If parent was continuous & this is separate, need to paginate to get subsection on its own page For sections/subsections: if parent was continuous & this is separate, don’t reset docstyle until after separate section pagebreak; if separator location is ‘0’, x-offset should be at tab not text of step
This commit is contained in:
@@ -1653,8 +1653,8 @@ namespace VEPROMS.CSLA.Library
|
||||
string parNumber = par.DisplayNumber;
|
||||
string myNumber = DisplayNumber;
|
||||
if (parNumber == null || myNumber == null) return false;
|
||||
if (!parNumber.EndsWith(".0")) return false;
|
||||
return (myNumber.StartsWith(parNumber.Substring(0, parNumber.Length - 1)));
|
||||
if (!parNumber.Trim().EndsWith(".0")) return false;
|
||||
return (myNumber.Trim().StartsWith(parNumber.Trim().Substring(0, parNumber.Length - 1)));
|
||||
}
|
||||
}
|
||||
public bool IsSeparateSubsection
|
||||
|
Reference in New Issue
Block a user