Implement code for DontResetIndentOnNewline for BGE
This commit is contained in:
1 parent
98dc16f69b
commit
f3b7e9138f
2 files changed
+34
-14
No files matched your search
@@ -89,6 +89,12 @@ namespace Volian.Print.Library
|
||||
}
|
||||
public class Rtf2iTextSharp : RtfVisualVisitorBase
|
||||
{
|
||||
private bool _HasIndent = false;
|
||||
public bool HasIndent
|
||||
{
|
||||
get { return _HasIndent; }
|
||||
set { _HasIndent = value; }
|
||||
}
|
||||
private static bool _DoingComparison = false;
|
||||
public static bool DoingComparison
|
||||
{
|
||||
@@ -122,12 +128,14 @@ namespace Volian.Print.Library
|
||||
switch (visualBreak.BreakKind)
|
||||
{
|
||||
case RtfVisualBreakKind.Line:
|
||||
_MyParagraph.Add(Chunk.NEWLINE);
|
||||
Chunk ck = HasIndent ? new Chunk("".PadLeft(200)) : Chunk.NEWLINE;
|
||||
_MyParagraph.Add(ck);
|
||||
break;
|
||||
case RtfVisualBreakKind.Page:
|
||||
break;
|
||||
case RtfVisualBreakKind.Paragraph:
|
||||
_MyParagraph.Add(Chunk.NEWLINE);
|
||||
Chunk ck1 = HasIndent ? new Chunk("".PadLeft(200)) : Chunk.NEWLINE;
|
||||
_MyParagraph.Add(ck1);
|
||||
break;
|
||||
case RtfVisualBreakKind.Section:
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user