Fixed Indent Logic
This commit is contained in:
parent
a203dd1846
commit
4936c0410b
@ -415,8 +415,8 @@ namespace Volian.Print.Library
|
||||
Match match = Regex.Match(rtf, @"\\fi([-0-9]*) ?\\li([0-9]*)");
|
||||
if (match.Success)
|
||||
{
|
||||
float fi = float.Parse(match.Groups[1].Value) / 20;
|
||||
float li = float.Parse(match.Groups[2].Value) / 20;
|
||||
float fi = float.Parse("0" + match.Groups[1].Value) / 20;
|
||||
float li = float.Parse("0" + match.Groups[2].Value) / 20;
|
||||
// if there is a hanging indent, the iTextSharp paragraph properties must be set
|
||||
// to print the indent.
|
||||
para.IndentationLeft = li;
|
||||
|
Loading…
x
Reference in New Issue
Block a user