Added TotalPages count to DebugPagination
Added logic to close output file on Dispose Output TotalPages count when closed Added Manual Page Break output to DebugPagination.txt Added preliminary pagination logic for KeepStepsOnPages Fixed Pagination Logic for HLP EOPs and WCN EMGs Update TotalPages on completing print of procedure Added YTop to Debug Output on Paragraphs Added preliminary logic for KeepStepsOnPage Correct logic for word-wrap issue
This commit is contained in:
@@ -149,11 +149,22 @@ namespace Volian.Print.Library
|
||||
if (chk == null)
|
||||
return null;
|
||||
string s = chk.Content;
|
||||
if (s.Length > 1) // don't remove last character if it's the only one
|
||||
if (s.Length > 1 || iParagraph.Count > 1) // don't remove last character if it's the only one
|
||||
{
|
||||
iParagraph.RemoveAt(iParagraph.Count - 1);
|
||||
if (s.Length > 0)
|
||||
{
|
||||
if (s == "\xA0") // If this is a space at the end put it back
|
||||
{
|
||||
iParagraph.Add(chk);
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
s = s.Substring(0, s.Length - 1);
|
||||
iParagraph.Add(new Chunk(s, chk.Font));
|
||||
}
|
||||
}
|
||||
}
|
||||
return chk;
|
||||
}
|
||||
|
Reference in New Issue
Block a user