Fixed a bug where the page number was not being resolved in page number transitions to sections that have a hard return.

Better handling of hard returns
This commit is contained in:
2015-08-31 20:47:24 +00:00
parent d79bc6762a
commit 11d58df488
4 changed files with 8 additions and 8 deletions

View File

@@ -307,10 +307,10 @@ namespace Volian.Controls.Library
// as a precaution, convert any \~ to \u160?. This is for Hard spaces. see the commentary in the
// save portion of this code for an explanation.
text = text.Replace(@"\~", @"\u160?");
text = text.Replace("\r\n", @"\par ");
text = text.Replace("\r\n", @"\line "); // replace a \r\n with a \line instead of a \par
//if (text.IndexOf(@"\line") > -1)
// MessageBox.Show("Found rtf line");
text = text.Replace(@"\line", @"\par");
// MessageBox.Show("Found rtf line");
//text = text.Replace(@"\line", @"\par"); // we don't want to replace the \line part of bug fix B2015-140
// Now put symbol (for fixed fonts) or unicode font (proportional) around symbols
// These fonts are VESymbFix & Arial Unicode MS respectively, and the font table