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

@@ -962,7 +962,7 @@ namespace Volian.Controls.Library
// using rtf commands to fix various indent bugs including B2015-103). The following code
// puts the rtf indent characters that are stored at beginning of string into correct location
// of rtf header (have to be after the \pard). Otherwise the indents did not show up.
Match match = Regex.Match(txt,@"\\fi([-0-9]*) ?\\li([0-9]*)");
Match match = Regex.Match(txt,@"\\fi([-0-9]+) ?\\li([0-9]+)");
if (match.Success)
{
string indentStr = @"\fi" + match.Groups[1].Value + @"\li" + match.Groups[2].Value;