Default text format: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
Default multiline: false
==== whitespace only
    HTML set:    \n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    \n\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r\r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:      
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">  </FONT></P>
    Text get:      
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:      
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     \n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     \r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     \r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    \n 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:    \r 
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r 
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== behaviors of newlines and whitespace
    HTML set:     test 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test </FONT></P>
    Text get:     test 
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test 
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     test test 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    \ntest\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    \rtest\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \rtest\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    test\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    test\ntest\n\ntest\n\n\ntest
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest\r\rtest\r\r\rtest
    Text runs (1):
      from 0 to 22: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\rtest\r\rtest\r\r\rtest
    Text runs (1):
      from 0 to 22: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    test\n\ntest\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\r\rtest\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r\rtest\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b>test</b>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>test</B></FONT></P>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li>\n
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b>\n</b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B></B></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b></b>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b> </b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B> </B></FONT></P>
    Text get:     
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <b> </b> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <B> </B> </FONT></P>
    Text get:       
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 2 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:       
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 2 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b> test </b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B> test </B></FONT></P>
    Text get:     test 
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test 
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b>\ntest\n</b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B></B></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>test</B></FONT></P>
    Text get:    \rtest\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \rtest\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:    \n<p>test</p>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    \rtest\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \rtest\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <p>test</p>  <p>test</p> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test  test </FONT></P>
    Text get:     test  test 
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">  test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     test\r  test\r 
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com"></a>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p></p>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>\n</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>\n</p>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r\r
    Text runs (1):
      from 0 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p> </p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     \r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p> </p> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">  </FONT></P>
    Text get:      
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     \r 
    Text runs (1):
      from 0 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p> test </p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test </FONT></P>
    Text get:     test 
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test \r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>\ntest\n</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    \rtest\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \rtest\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li></li>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>\n</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    \r\r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test\n</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li> </li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></LI>
    Text get:     
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <!-- the same -->
    Text get:     \r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li> </li> 
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">  </FONT></LI>
    Text get:      
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     \r 
    Text runs (2):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 2 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li> test </li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test </FONT></LI>
    Text get:     test 
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test \r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>\ntest\n</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    \rtest\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    \rtest\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <a href="http://example.com">test</a>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="">test</A></FONT></P>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat>test</textformat>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1">test</textformat>\n
    HTML get:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P></TEXTFORMAT>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"><p>test</p></textformat>\n
    HTML get:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P></TEXTFORMAT>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"><p><font color="#111111">test</font></p></textformat>\n
    HTML get:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#111111" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1118481, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#111111" LETTERSPACING="0" KERNING="0">test</FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1118481, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== empty tags
    HTML set:    <i></i>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <!-- the same -->
    Text get:    
    Text runs (0):
    ===============
    HTML set:    <u></u>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <!-- the same -->
    Text get:    
    Text runs (0):
    ===============
    HTML set:    <b></b>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <!-- the same -->
    Text get:    
    Text runs (0):
    ===============
    HTML set:    <p></p>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li></li>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <font></font>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <!-- the same -->
    Text get:    
    Text runs (0):
    ===============
    HTML set:    <font color="#111111"></font>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <!-- the same -->
    Text get:    
    Text runs (0):
    ===============
    HTML set:    <textformat></textformat>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <!-- the same -->
    Text get:    
    Text runs (0):
    ===============
    HTML set:    <textformat leading="1"></textformat>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <!-- the same -->
    Text get:    
    Text runs (0):
    ===============
==== tag order
    HTML set:    <b><i><u>test</u></i></b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B><I><U>test</U></I></B></FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    HTML get ml: <!-- the same -->
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    ===============
    HTML set:    <u><i><b>test</b></i></u>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B><I><U>test</U></I></B></FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    HTML get ml: <!-- the same -->
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    ===============
    HTML set:    <i><u><b>test</b></u></i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B><I><U>test</U></I></B></FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    HTML get ml: <!-- the same -->
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    ===============
    HTML set:    <b><i><u>test</u> <u>test</u></i> <i><u>test</u> <u>test</u></i></b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B><I><U>test</U></I></B><B><I> </I></B><B><I><U>test</U></I></B><B> </B><B><I><U>test</U></I></B><B><I> </I></B><B><I><U>test</U></I></B></FONT></P>
    Text get:    test test test test
    Text runs (7):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=false
      from 15 to 19: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    HTML get ml: <!-- the same -->
    Text get:    test test test test
    Text runs (7):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=false
      from 15 to 19: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    ===============
    HTML set:    <i><u><b>test</b> <b>test</b></u> <u><b>test</b> <b>test</b></u></i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B><I><U>test</U></I></B><I><U> </U></I><B><I><U>test</U></I></B><I> </I><B><I><U>test</U></I></B><I><U> </U></I><B><I><U>test</U></I></B></FONT></P>
    Text get:    test test test test
    Text runs (7):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=true
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=true
      from 15 to 19: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    HTML get ml: <!-- the same -->
    Text get:    test test test test
    Text runs (7):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=true
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=true
      from 15 to 19: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=true, bullet=false, underline=true
    ===============
    HTML set:    <b><font color="#010101">test</font></b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0"><B>test</B></FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#010101"><textformat leading="0">test</textformat></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <i><font color="#010101"><textformat leading="0">test</textformat></font></i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0"><I>test</I></FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=true, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=true, bullet=false, underline=false
    ===============
    HTML set:    <i><a href="http://example.com/"><font color="#010101"><textformat leading="0"><b>test</b></textformat></font></a></i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com/" TARGET=""><B><I>test</I></B></A></FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=true, italic=true, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=true, italic=true, bullet=false, underline=false
    ===============
==== merging tags: same tags
    HTML set:     <p>test</p> <p>test</p> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     test\r test\r 
    Text runs (1):
      from 0 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p><p>test</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest\r
    Text runs (1):
      from 0 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <font color="#010101">test</font> <font color="#010101">test</font> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <FONT COLOR="#010101">test</FONT> <FONT COLOR="#010101">test</FONT> </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#010101">test</font><font color="#010101">test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <li>test</li> <li>test</li> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     \rtest\r \rtest\r 
    Text runs (5):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 7 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 9 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li><li>test</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></LI>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\rtest\r
    Text runs (1):
      from 0 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:     <b>test</b> <b>test</b> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <B>test</B> <B>test</B> </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b>test</b><b>test</b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>testtest</B></FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <i>test</i> <i>test</i> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <I>test</I> <I>test</I> </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <i>test</i><i>test</i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>testtest</I></FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
    ===============
    HTML set:     <u>test</u> <u>test</u> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <U>test</U> <U>test</U> </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <u>test</u><u>test</u>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><U>testtest</U></FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
    ===============
    HTML set:     <a href="http://example.com/">test</a> <a href="http://example.com/">test</a> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <A HREF="http://example.com/" TARGET="">test</A> <A HREF="http://example.com/" TARGET="">test</A> </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com/">test</a><a href="http://example.com/">test</a>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com/" TARGET="">testtest</A></FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <textformat leading="0">test</textformat> <textformat leading="0">test</textformat> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="0">test</textformat><textformat leading="0">test</textformat>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== merging tags: same tags, different attributes
    HTML set:     <p align="right">test</p> <p align="left">test</p> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     test\r test\r 
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 6: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p align="right">test</p><p align="left">test</p>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <font color="#010101">test</font> <font color="#020202">test</font> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <FONT COLOR="#010101">test</FONT> <FONT COLOR="#020202">test</FONT> </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=131586, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=131586, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#010101">test</font><font color="#020202">test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#020202">test</FONT></FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=131586, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=131586, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <a href="http://example.com/1">test</a> <a href="http://example.com/2">test</a> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <A HREF="http://example.com/1" TARGET="">test</A> <A HREF="http://example.com/2" TARGET="">test</A> </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com/1">test</a><a href="http://example.com/2">test</a>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com/1" TARGET="">test</A><A HREF="http://example.com/2" TARGET="">test</A></FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <textformat leading="0">test</textformat> <textformat leading="1">test</textformat> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (3):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:     test test 
    Text runs (3):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="0">test</textformat><textformat leading="1">test</textformat>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leftmargin="1">test</textformat><textformat rightmargin="1">test</textformat>
    HTML get:    <TEXTFORMAT LEFTMARGIN="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P></TEXTFORMAT>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=1, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=1, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=1, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=1, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leftmargin="1"><p>test</p></textformat><textformat rightmargin="1"><p>test</p></textformat>
    HTML get:    <TEXTFORMAT LEFTMARGIN="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P></TEXTFORMAT>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=1, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=1, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEFTMARGIN="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P></TEXTFORMAT><TEXTFORMAT RIGHTMARGIN="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P></TEXTFORMAT>
    Text get:    test\rtest\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=1, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=1, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== font stack
    HTML set:    <font face="Noto Sans"><font color="#aaaaaa">test</font> <font color="#bbbbbb">test</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#000000"> <FONT COLOR="#BBBBBB">test</FONT></FONT></FONT></P>
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans"><font color="#aaaaaa">test</font> <font color="#aaaaaa">test</font> <font color="#bbbbbb">test</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#000000"> </FONT>test<FONT COLOR="#000000"> <FONT COLOR="#BBBBBB">test</FONT></FONT></FONT></P>
    Text get:    test test test
    Text runs (5):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 10: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test test
    Text runs (5):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 10: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#aaaaaa"><font face="Noto Sans">test</font> <font face="Noto Sans">test</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT FACE="Times"> </FONT>test</FONT></P>
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#aaaaaa"><font face="Noto Sans">test</font> <font face="Noto Sans">test</font></font> <font color="#bbbbbb"><font face="Noto Sans">test</font> <font face="Noto Sans">test</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT FACE="Times"> </FONT>test<FONT FACE="Times" COLOR="#000000"> <FONT FACE="Noto Sans" COLOR="#BBBBBB">test<FONT FACE="Times"> </FONT>test</FONT></FONT></FONT></P>
    Text get:    test test test test
    Text runs (7):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
      from 15 to 19: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test test test
    Text runs (7):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 14: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
      from 15 to 19: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#aaaaaa" face="Noto Sans">test</font> <font color="#aaaaaa" face="Noto Sans">test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT FACE="Times" COLOR="#000000"> </FONT>test</FONT></P>
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#aaaaaa" face="Noto Sans">test<font color="#000000"> </font>test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#000000"> </FONT>test</FONT></P>
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans"><font color="#aaaaaa">test</font></font><font face="Noto Sans">test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#000000">test</FONT></FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans" color="#aaaaaa">test</font><font face="Noto Sans" color="#bbbbbb">test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#BBBBBB">test</FONT></FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans">test <font color="#aaaaaa">test</font> test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <FONT COLOR="#AAAAAA">test</FONT> test</FONT></P>
    Text get:    test test test
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 14: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test test
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 14: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans">test <font color="#aaaaaa">test</font><font color="#bbbbbb">test</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <FONT COLOR="#AAAAAA">test<FONT COLOR="#BBBBBB">test</FONT></FONT></FONT></P>
    Text get:    test testtest
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 13: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test testtest
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 13: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=12303291, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans">test <font color="#aaaaaa">test</font><font size="16">test</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <FONT COLOR="#AAAAAA">test<FONT SIZE="16" COLOR="#000000">test</FONT></FONT></FONT></P>
    Text get:    test testtest
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 13: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test testtest
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 13: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans">test <font color="#aaaaaa">test</font><font size="16">t<b>e</b>st</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <FONT COLOR="#AAAAAA">test<FONT SIZE="16" COLOR="#000000">t<B>e</B>st</FONT></FONT></FONT></P>
    Text get:    test testtest
    Text runs (5):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 10: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 11 to 13: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test testtest
    Text runs (5):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 10: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 11 to 13: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans">te<b>st <font color="#aaaaaa">test</font><font size="16">test</font></b></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">te<B>st </B><FONT COLOR="#AAAAAA"><B>test</B><FONT SIZE="16" COLOR="#000000"><B>test</B></FONT></FONT></FONT></P>
    Text get:    test testtest
    Text runs (4):
      from 0 to 2: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=true, italic=false, bullet=false, underline=false
      from 9 to 13: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test testtest
    Text runs (4):
      from 0 to 2: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=true, italic=false, bullet=false, underline=false
      from 9 to 13: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans">test <font color="#aaaaaa">test</font><font size="16">t<p>e</p>st</font></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <FONT COLOR="#AAAAAA">test<FONT SIZE="16" COLOR="#000000">test</FONT></FONT></FONT></P>
    Text get:    test testtest
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 13: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <FONT COLOR="#AAAAAA">test<FONT SIZE="16" COLOR="#000000">te</FONT></FONT></FONT></P><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="16" COLOR="#000000" LETTERSPACING="0" KERNING="0">st</FONT></P>
    Text get:    test testte\rst
    Text runs (5):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 11: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 11 to 12: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 12 to 14: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font face="Noto Sans">test <font color="#aaaaaa">test <font size="16">test</font></font> test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <FONT COLOR="#AAAAAA">test <FONT SIZE="16">test</FONT></FONT> test</FONT></P>
    Text get:    test test test test
    Text runs (4):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 10: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 10 to 14: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 14 to 19: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test test test
    Text runs (4):
      from 0 to 5: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 10: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 10 to 14: size=16, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 14 to 19: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com/"><font color="#aaaaaa">test <font size="16">test</font></font> test</a>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com/" TARGET="">test </A><FONT SIZE="16"><A HREF="http://example.com/" TARGET="">test</A><FONT SIZE="12" COLOR="#000000"><A HREF="http://example.com/" TARGET=""> test</A></FONT></FONT></FONT></P>
    Text get:    test test test
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=16, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test test test
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=16, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 9 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== font multiline
    HTML set:    <font color="#aaaaaa" face="Noto Sans">test</font>\n<font color="#aaaaaa" face="Noto Sans">test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test<FONT FACE="Times" COLOR="#000000"></FONT></FONT></P><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\rtest
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#aaaaaa" face="Noto Sans">test\ntest</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\rtest
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    ===============
==== br behavior
    HTML set:    line 1 <br> line 2
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1  line 2</FONT></P>
    Text get:    line 1  line 2
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1 </FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> line 2</FONT></P>
    Text get:    line 1 \r line 2
    Text runs (1):
      from 0 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>line 1 <br> line 2</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1  line 2</FONT></P>
    Text get:    line 1  line 2
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1 </FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> line 2</FONT></P>
    Text get:    line 1 \r line 2\r
    Text runs (1):
      from 0 to 16: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>line 1 <br> line 2</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1  line 2</FONT></LI>
    Text get:    line 1  line 2
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1 </FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> line 2</FONT></LI>
    Text get:    line 1 \r line 2\r
    Text runs (1):
      from 0 to 16: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>line 1</p> <br> <p>line 2</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1  line 2</FONT></P>
    Text get:    line 1  line 2
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> line 2</FONT></P>
    Text get:    line 1\r \r line 2\r
    Text runs (1):
      from 0 to 17: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>line 1</p><br><p>line 2</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1line 2</FONT></P>
    Text get:    line 1line 2
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 1</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">line 2</FONT></P>
    Text get:    line 1\r\rline 2\r
    Text runs (1):
      from 0 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b>line 1 <br> line 2</b>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>line 1  line 2</B></FONT></P>
    Text get:    line 1  line 2
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>line 1 </B></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B> line 2</B></FONT></P>
    Text get:    line 1 \r line 2
    Text runs (1):
      from 0 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com">line 1 <br> line 2</a>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="">line 1  line 2</A></FONT></P>
    Text get:    line 1  line 2
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="">line 1 </A></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET=""> line 2</A></FONT></P>
    Text get:    line 1 \r line 2
    Text runs (1):
      from 0 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#aaaaaa" face="Noto Sans">test<br>test</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#AAAAAA" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Noto Sans, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=11184810, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font kerning="1"><i><br></i>text</font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="1">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=true, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="1"><I></I></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="1">text</FONT></P>
    Text get:    \rtext
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=true, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=true, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    test <b> test <br> test </b> test <br> test
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <B> test  test </B> test  test</FONT></P>
    Text get:    test  test  test  test  test
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 17: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 17 to 28: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test <B> test </B></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B> test </B> test </FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P>
    Text get:    test  test \r test  test \r test
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 18: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 18 to 30: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <font color="#010101">texttext<b><br></b></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">texttext</FONT></P>
    Text get:    texttext
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">texttext<B></B></FONT></P>
    Text get:    texttext\r
    Text runs (2):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 8 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=true, italic=false, bullet=false, underline=false
    ===============
    HTML set:    text<li><br><textformat leftmargin="2"></textformat></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\r\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    text<br><textformat indent="5"><textformat rightmargin="3"><br></textformat></textformat>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><TEXTFORMAT RIGHTMARGIN="3" INDENT="5"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
    Text get:    text\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=3, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== textformat behavior
    HTML set:    <textformat></textformat>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"></textformat>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"><p></p></textformat>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"><p><font color="#111111"></font></p></textformat>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#111111" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1118481, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"><p><font color="#111111"><b></b></font></p></textformat>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#111111" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1118481, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Some Font" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Some Font" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=10, blockIndent=0, font=Some Font, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    text<textformat rightmargin="3">text</textformat><textformat rightmargin="2">text</textformat><br><textformat rightmargin="4">text</textformat><textformat rightmargin="5">text</textformat>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">texttexttexttexttext</FONT></P>
    Text get:    texttexttexttexttext
    Text runs (5):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=3, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=2, color=0, bold=false, italic=false, bullet=false, underline=false
      from 12 to 16: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=4, color=0, bold=false, italic=false, bullet=false, underline=false
      from 16 to 20: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=5, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">texttexttext</FONT></P><TEXTFORMAT RIGHTMARGIN="4"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">texttext</FONT></P></TEXTFORMAT>
    Text get:    texttexttext\rtexttext
    Text runs (6):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=3, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=2, color=0, bold=false, italic=false, bullet=false, underline=false
      from 12 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 13 to 17: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=4, color=0, bold=false, italic=false, bullet=false, underline=false
      from 17 to 21: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=5, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    text<textformat leftmargin="2"><li><a href="http://example.com" target="_blank"><br></a></li></textformat>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><TEXTFORMAT LEFTMARGIN="2"><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></LI></TEXTFORMAT><TEXTFORMAT LEFTMARGIN="2"><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI></TEXTFORMAT>
    Text get:    text\r\r\r
    Text runs (4):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=2, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=2, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=2, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <textformat leading="1">a<textformat rightmargin="2">b</textformat>c</textformat>d
    HTML get:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">abcd</FONT></P></TEXTFORMAT>
    Text get:    abcd
    Text runs (4):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=2, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 3: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 3 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    abcd
    Text runs (4):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=2, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 3: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 3 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    test<textformat leading="1">a<textformat rightmargin="2">b</textformat>c</textformat>d
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testabcd</FONT></P>
    Text get:    testabcd
    Text runs (5):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=2, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 7: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 7 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testabcd
    Text runs (5):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=2, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 7: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 7 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== p and li behavior
    HTML set:    <i>text<li>text</li></i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>texttext</I></FONT></P>
    Text get:    texttext
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>text</I></FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>text</I></FONT></LI>
    Text get:    text\rtext\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 5 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
    ===============
    HTML set:    <i>text<li></li></i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>text</I></FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>text</I></FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I></I></FONT></LI>
    Text get:    text\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
    ===============
    HTML set:    <font color="#010101">text<li></li></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p align="right">text<li></li></p>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    text\r\r\r
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 7: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    text<li><li></li></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\r\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    text<li><li><li></li></li></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\r\r\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    text<li>a<li>b<li>c</li>d</li>e</li>f
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">textabcdef</FONT></P>
    Text get:    textabcdef
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">b</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">c</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">d</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">e</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">f</FONT></P>
    Text get:    text\ra\rb\rc\rd\re\rf
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 15 to 16: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    text<li><li>test</li></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">texttest</FONT></P>
    Text get:    texttest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\rtest\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    text<li>a<li>test</li></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">textatest</FONT></P>
    Text get:    textatest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\ra\rtest\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    text<li>a<b></b><li>test</li></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">textatest</FONT></P>
    Text get:    textatest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\ra\rtest\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test<b></b><li>test</li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></LI>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\rtest\r\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test<b></b><p>test</p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest\r
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test<u></u><li>test</li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></LI>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\rtest\r\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test<u></u><p>test</p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest\r
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test<i></i><li>test</li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></LI>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\rtest\r\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test<i></i><p>test</p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest\r
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test<font color="#121212"></font><li>test</li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></LI>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\rtest\r\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test<font color="#121212"></font><p>test</p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest<FONT COLOR="#121212"></FONT></FONT></P>
    Text get:    testtest\r
    Text runs (2):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1184274, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<font color="#121212"></font><p>test<font color="#131313"></font><p>test</p></p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttest</FONT></P>
    Text get:    testtesttest
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttest<FONT COLOR="#131313"></FONT></FONT></P>
    Text get:    testtesttest\r
    Text runs (2):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 12 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1250067, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<font color="#121212"></font><p>test<font color="#131313"></font><p>test<font color="#141414"></font></p></p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttest</FONT></P>
    Text get:    testtesttest
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttest<FONT COLOR="#141414"></FONT></FONT></P>
    Text get:    testtesttest\r
    Text runs (2):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 12 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1315860, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<font color="#121212"></font><p>test<font color="#131313"></font><p>test<font color="#141414"></font></p></p></p><p>test</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttesttest</FONT></P>
    Text get:    testtesttesttest
    Text runs (1):
      from 0 to 16: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttest<FONT COLOR="#141414"></FONT></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#141414"></FONT></FONT></P>
    Text get:    testtesttest\rtest\r
    Text runs (4):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 12 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1315860, bold=false, italic=false, bullet=false, underline=false
      from 13 to 17: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 17 to 18: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1315860, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<font color="#121212"></font><p>test</p><font color="#131313"><p>test</p></font>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest<FONT COLOR="#131313">test</FONT></FONT></P>
    Text get:    testtesttest
    Text runs (2):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1250067, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest<FONT COLOR="#121212"></FONT></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#131313" LETTERSPACING="0" KERNING="0">test<FONT COLOR="#121212"></FONT></FONT></P>
    Text get:    testtest\rtest\r
    Text runs (4):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1184274, bold=false, italic=false, bullet=false, underline=false
      from 9 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1250067, bold=false, italic=false, bullet=false, underline=false
      from 13 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1184274, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<b></b><p>test</p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtest\r
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<b></b><p>test<i></i><p>test</p></p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttest</FONT></P>
    Text get:    testtesttest
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtesttest\r
    Text runs (1):
      from 0 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<b></b><p>test<i></i><p>test<u></u></p></p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtesttest</FONT></P>
    Text get:    testtesttest
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    testtesttest\r
    Text runs (1):
      from 0 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<font color="#121212"></font><font color="#131313"><font color="#141414"></font></font><p>test</p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest<FONT COLOR="#131313"></FONT></FONT></P>
    Text get:    testtest\r
    Text runs (2):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=1250067, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test<textformat leading="1"></textformat><li>test</li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></LI>
    Text get:    testtest
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\rtest\r\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    text<li></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    text\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p></p><p></p>test<p></p><p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\rtest\r\r
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p></p><p></p>test<p></p><p></p><p></p><p></p><p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\rtest\r\r\r\r\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>a<p>b</p>c<p>d</p>e</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">abcde</FONT></P>
    Text get:    abcde
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">ab</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">cd</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">e</FONT></P>
    Text get:    ab\rcd\re
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test<b></b></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test<u></u></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test<i></i></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test<b></b></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<u></u></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test<i></i></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <i><p align="right">text</p></i>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>text</I></FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b><p align="right"></p></b>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <b><p align="right">text</p></b>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>text</B></FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=true, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <u><p align="right"></p></u>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <u><p align="right">text</p></u>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><U>text</U></FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=true
      from 4 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p align="justify">text</p>
    HTML get:    <P ALIGN="JUSTIFY"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=justify, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=justify, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p align="center">text</p>
    HTML get:    <P ALIGN="CENTER"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=center, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=center, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p align="unknown">text</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p align="Left">text</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p ALIGN="LEFT">text</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p ALIGN="RiGHT">text</p>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p ALIGN="CENtEr">text</p>
    HTML get:    <P ALIGN="CENTER"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=center, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=center, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com"><p align="right"></p></a>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com"><p align="right">text</p></a>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="">text</A></FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"><p align="right"></p></textformat>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=right, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <textformat leading="1"><p align="right">text</p></textformat>
    HTML get:    <TEXTFORMAT LEADING="1"><P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P></TEXTFORMAT>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=right, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li><font color="#010101">text</font></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">text</FONT></LI>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">text<FONT COLOR="#000000"></FONT></FONT></LI>
    Text get:    text\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=true, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p></p>\n <li>text</li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> text</FONT></P>
    Text get:    \r text
    Text runs (2):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></LI>
    Text get:    \r\r \rtext\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <u><li>test</li></u>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><U>test</U></FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=true
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=true
    ===============
    HTML set:    <li> </li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></LI>
    Text get:     
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <!-- the same -->
    Text get:     \r
    Text runs (1):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    test<li>test</li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest</FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\rtest\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    test<li><i>test</i></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test<I>test</I></FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>test</I></FONT></LI>
    Text get:    test\rtest\r
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
      from 9 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    test<li><i><p>test</p></i></li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test<I>test</I></FONT></P>
    Text get:    testtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>test</I></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\rtest\r\r
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
      from 9 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test</li>\n
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li><p>test 2</p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testtest 2</FONT></LI>
    Text get:    testtest 2
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test 2</FONT></P>
    Text get:    test\rtest 2\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p><li>test</li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li><p>test</p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test</p>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p>a\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testa</FONT></P>
    Text get:    testa\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P>
    Text get:    test\ra\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p>\na
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P>
    Text get:    test\ra
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P>
    Text get:    test\r\ra
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p>\n<p>test</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\r\rtest\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p>a\n<p>test</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testa</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    testa\rtest
    Text runs (1):
      from 0 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\ra\rtest\r
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p>\na<p>test</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">atest</FONT></P>
    Text get:    test\ratest
    Text runs (1):
      from 0 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">atest</FONT></P>
    Text get:    test\r\ratest\r
    Text runs (1):
      from 0 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>test</p>\n<li>test</li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\rtest
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r\rtest\r
    Text runs (2):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test</p>a\n<li>test</li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testa</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    testa\rtest
    Text runs (2):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\ra\rtest\r
    Text runs (2):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 7 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>test</p>\na<li>test</li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">atest</FONT></P>
    Text get:    test\ratest
    Text runs (2):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r\ra\rtest\r
    Text runs (2):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test</li>\n
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li>a\n
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testa</FONT></LI>
    Text get:    testa\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P>
    Text get:    test\ra\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li>\na
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P>
    Text get:    test\ra
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P>
    Text get:    test\r\ra
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li>\n<li>test</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\rtest
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r\rtest\r
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test</li>a\n<li>test</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testa</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    testa\rtest
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\ra\rtest\r
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 7 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test</li>\na<li>test</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">atest</FONT></P>
    Text get:    test\ratest
    Text runs (3):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test\r\ra\rtest\r
    Text runs (3):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>test</li>\n<p>test</p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\rtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\r\rtest\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li>a\n<p>test</p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">testa</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    testa\rtest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test\ra\rtest\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>test</li>\na<p>test</p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">atest</FONT></P>
    Text get:    test\ratest
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 4 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">atest</FONT></P>
    Text get:    test\r\ratest\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <i>text<li>text</li></i>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>texttext</I></FONT></P>
    Text get:    texttext
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 4 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>text</I></FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><I>text</I></FONT></LI>
    Text get:    text\rtext\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=false, underline=false
      from 5 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=true, bullet=true, underline=false
    ===============
    HTML set:    <font color="#010101"><textformat rightmargin="3"><p><li></li></p></textformat></font>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <TEXTFORMAT RIGHTMARGIN="3"><LI><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0"></FONT></LI></TEXTFORMAT><TEXTFORMAT RIGHTMARGIN="3"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=3, color=65793, bold=false, italic=false, bullet=true, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=3, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com"><p></p></a>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com" target="_blank">\n<textformat tabstops="1,2,3"><p><li></li></p></textformat></a>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></P><TEXTFORMAT TABSTOPS="1,2,3"><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></LI></TEXTFORMAT><TEXTFORMAT TABSTOPS="1,2,3"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
    Text get:    \r\r\r
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 2 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com" target="_blank"><textformat tabstops="1,2,3"><p><li></li></p></textformat></a>
    HTML get:    
    Text get:    
    Text runs (0):
    HTML get ml: <TEXTFORMAT TABSTOPS="1,2,3"><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></LI></TEXTFORMAT><TEXTFORMAT TABSTOPS="1,2,3"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com" target="_blank">\n<textformat tabstops="1,2,3"><p></p></textformat></a>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></P><TEXTFORMAT TABSTOPS="1,2,3"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <a href="http://example.com" target="_blank">\n<textformat tabstops="1,2,3"><li></li></textformat></a>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></P><TEXTFORMAT TABSTOPS="1,2,3"><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://example.com" TARGET="_blank"></A></FONT></LI></TEXTFORMAT>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
==== p and li merging
    HTML set:    <p>first</p><li>second</li>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">firstsecond</FONT></P>
    Text get:    firstsecond
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">first</FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">second</FONT></LI>
    Text get:    first\rsecond\r
    Text runs (2):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:     <p>first</p> <li>second</li> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> first second </FONT></P>
    Text get:     first second 
    Text runs (3):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 7 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 13 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> first</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">second</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     first\r \rsecond\r 
    Text runs (3):
      from 0 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 9 to 16: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 16 to 17: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>first</li><p>second</p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">firstsecond</FONT></LI>
    Text get:    firstsecond
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">first</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">second</FONT></P>
    Text get:    first\rsecond\r
    Text runs (2):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <li>first</li> <p>second</p> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> first second </FONT></P>
    Text get:     first second 
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">first</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> second</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     \rfirst\r second\r 
    Text runs (3):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 8 to 17: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>first</p><p>second</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">firstsecond</FONT></P>
    Text get:    firstsecond
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">first</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">second</FONT></P>
    Text get:    first\rsecond\r
    Text runs (1):
      from 0 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <p>first</p> <p>second</p> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> first second </FONT></P>
    Text get:     first second 
    Text runs (1):
      from 0 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> first</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> second</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     first\r second\r 
    Text runs (1):
      from 0 to 16: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li>first</li><li>second</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">firstsecond</FONT></LI>
    Text get:    firstsecond
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">first</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">second</FONT></LI>
    Text get:    first\rsecond\r
    Text runs (1):
      from 0 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:     <li>first</li> <li>second</li> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> first second </FONT></P>
    Text get:     first second 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 7 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 13 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">first</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">second</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     \rfirst\r \rsecond\r 
    Text runs (5):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 8 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 17: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 17 to 18: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p></p><li>test</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    \rtest\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li></li><p>test</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    \rtest\r
    Text runs (2):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 1 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li></li><p></p><li>test</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    \r\rtest\r
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p>a<p>b<p>c</p>d</p>e</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">abcde</FONT></P>
    Text get:    abcde
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">abc</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">de</FONT></P>
    Text get:    abc\rde
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== p and li nesting
    HTML set:    <p><p>test</p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>a <p>test</p> b</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a test b</FONT></P>
    Text get:    a test b
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> b</FONT></P>
    Text get:    a test\r b
    Text runs (1):
      from 0 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p><li>test</li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p>a <li>test</li> b</p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a test b</FONT></P>
    Text get:    a test b
    Text runs (3):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> b</FONT></P>
    Text get:    a \rtest\r b\r
    Text runs (3):
      from 0 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 3 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 8 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li><p>test</p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>a <p>test</p> b</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a test b</FONT></LI>
    Text get:    a test b
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> b</FONT></LI>
    Text get:    a test\r b\r
    Text runs (1):
      from 0 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><li>test</li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li>a <li>test</li> b</li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a test b</FONT></LI>
    Text get:    a test b
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a </FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> b</FONT></LI>
    Text get:    a \rtest\r b\r
    Text runs (1):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p><p><p>test</p></p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p><p><li>test</li></p></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p><li><p>test</p></li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p><li><li>test</li></li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r\r
    Text runs (2):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li><p><p>test</p></p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><p><li>test</li></p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><li><p>test</p></li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><li><li>test</li></li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p><p><p><p>test</p></p></p></p>
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></P>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    test\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p><p><p><li>test</li></p></p></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p><p><li><p>test</p></li></p></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p><p><li><li>test</li></li></p></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r\r
    Text runs (2):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 6 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <p><li><p><p>test</p></p></li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p><li><p><li>test</li></p></li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p><li><li><p>test</p></li></li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <p><li><li><li>test</li></li></li></p>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    test\r\r\r\r
    Text runs (2):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 7 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li><p><p><p>test</p></p></p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r
    Text runs (1):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><p><p><li>test</li></p></p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><p><li><p>test</p></li></p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><p><li><li>test</li></li></p></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r\r
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><li><p><p>test</p></p></li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r
    Text runs (1):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><li><p><li>test</li></p></li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r\r
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><li><li><p>test</p></li></li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r\r
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <li><li><li><li>test</li></li></li></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI>
    Text get:    test
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI>
    Text get:    test\r\r\r\r
    Text runs (1):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:     <li>test</li> <li>test</li> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (5):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     \rtest\r \rtest\r 
    Text runs (5):
      from 0 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 7 to 9: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 9 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 14 to 15: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <p align="left">test</p> <p align="right">test</p> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (3):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     test\r test\r 
    Text runs (3):
      from 0 to 7: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 7 to 12: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 12 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:     <p>test</p> <li>test</li> 
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test test </FONT></P>
    Text get:     test test 
    Text runs (3):
      from 0 to 6: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 6 to 10: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 10 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> test</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">test</FONT></LI><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"> </FONT></P>
    Text get:     test\r \rtest\r 
    Text runs (3):
      from 0 to 8: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 8 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
      from 13 to 14: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
==== various edge cases found by bruteforce testing
    HTML set:    <p align="right"><font color="#010101">text</font></p>
    HTML get:    <P ALIGN="RIGHT"><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">text</FONT></P>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <!-- the same -->
    Text get:    text\r
    Text runs (1):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=right, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <li><font color="#010101">text</font></li>
    HTML get:    <LI><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">text</FONT></LI>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=true, underline=false
    HTML get ml: <LI><FONT FACE="Times" SIZE="12" COLOR="#010101" LETTERSPACING="0" KERNING="0">text<FONT COLOR="#000000"></FONT></FONT></LI>
    Text get:    text\r
    Text runs (2):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=65793, bold=false, italic=false, bullet=true, underline=false
      from 4 to 5: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
    HTML set:    <textformat leading="1">text<li></li></textformat>
    HTML get:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P></TEXTFORMAT>
    Text get:    text
    Text runs (1):
      from 0 to 4: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">text</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="1"><LI><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></LI></TEXTFORMAT>
    Text get:    text\r\r
    Text runs (2):
      from 0 to 5: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 5 to 6: size=12, blockIndent=0, font=Times, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=true, underline=false
    ===============
==== some real-world cases
    HTML set:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Noto Sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r\r
    Text runs (3):
      from 0 to 1: size=12, blockIndent=0, font=Noto Sans, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Noto Sans, align=left, leading=2, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 2 to 3: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Some Font" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r
    Text runs (1):
      from 0 to 1: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Some Font" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \r\r
    Text runs (2):
      from 0 to 1: size=10, blockIndent=0, font=Some Font, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 2: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
    HTML set:    <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Some Font" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><font COLOR="#444444">some text\n\n</font>\n
    HTML get:    <P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#444444" LETTERSPACING="0" KERNING="0">some text</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#444444" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    some text\r\r\r
    Text runs (2):
      from 0 to 11: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=4473924, bold=false, italic=false, bullet=false, underline=false
      from 11 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    HTML get ml: <TEXTFORMAT LEADING="1"><P ALIGN="LEFT"><FONT FACE="Some Font" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#444444" LETTERSPACING="0" KERNING="0">some text</FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#444444" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Times" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P>
    Text get:    \rsome text\r\r\r
    Text runs (3):
      from 0 to 1: size=10, blockIndent=0, font=Some Font, align=left, leading=1, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
      from 1 to 12: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=4473924, bold=false, italic=false, bullet=false, underline=false
      from 12 to 13: size=12, blockIndent=0, font=Times, align=left, leading=0, display=block, kerning=false, leftMargin=0, rightMargin=0, color=0, bold=false, italic=false, bullet=false, underline=false
    ===============
