-- whitespace at the beginning :-)
foobar
foobarfoobar
foobar
foobar
<4>foo4><4>bar4>
Text 3Text 4Text 1
Text 1Text 3Text 4
aouahfoobar
Texte1Texte2Text3Text4
-------
dfs2afoo a b " "" "
hifoo barake tut"a " a baaa bbb test" foo"a
a
toto" "" a""a "" "" "test "Test ""Test "ggg j" asd"" "" foo" "a a"<1> bob1> bobb b " hello"help " a "" a "a
b "hello
"T T " "" " helloab
cab
cla
la
" "kb
B abc
'
'a
arr h rfoo bar"blaat
"a b a" ""bold ""rob
" x test "
foo"
abc " stuff""
jiggy"" ill""stuff "" bar
""
" bahfoobah foohello x
-----------
### test all tags
<9>
9>
### remove empty tags
. xx
. xx
### remove almost-empty tags
. x x
. x x
### remove redundant tags
. xxxxxxxxxxxxxxxxxxxxxxxxxxx
. xxxxxxxxxxxxxxxxxxxxxxxxxxx
### space size is significant
. <2> <3> <4> 4> 3> 2>
. <2> <3> <4> 4> 3> 2>
### underlined space with colors
.
.
### too many underlines
.
.
### remove useless PL
. xxxxxxxxx
. xxxxxxxxx
### reorder open tags
. xxxxxxxxx
. xxxxxxxxx
### color nesting
. xxxxxxxxxxxxxxx
. xxxxxxxxxxxxxxx
### same-color nesting
. xxxxxxxxxxxxxxxxxxxxx
. xxxxxxxxxxxxxxxxxxxxx
### color de-nesting
. xxxxx
. xxxxx
### EM nesting
. xxxxxxxxxxxxxxx
. xxxxxxxxxxxxxxx
### EM nesting with interference
. xxxxxxxxxxxx
. xxxxxxxxxxxx
### EM de-nesting
. xxxxxxxxxxxxxxx
. xxxxxxxxxxxxxxx
### nesting S inside EM
. xxxxxxxxx
. xxxxxxxxx
### de-nesting S from EM
. xxx<2>xxxxxx2>
. xxx<2>xxxxxx2>
### 1-level PL shortcut (simple)
. xxxxxxxxx
. xxxxxxxxx
### 1-level PL shortcut (complex)
. xxxxxxxxx
. xxxxxxxxx
### 2-level PL shortcut (simple)
. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
### remove PL detour
. xxxaaabbb
. xxxaaabbb
### remove PL detour (interferes with S inside EM)
. xxxxxxxxx
. xxxxxxxxx
### remove irrelevant attributes on whitespace
. xxx xxx
. xxx xxx
### add irrelevant attributes on whitespace
. xxx xxx
. xxx xxx
### nesting of colors and sizes -- 1
. <1>xxx<2>xxxxxx2>1>
. <1>xxx<2>xxxxxx2>1>
### nesting of colors and sizes -- 2
. <1>xxx<2>xxx2>xxx1>
. <1>xxx<2>xxx2>xxx1>
### overlap inversion (right)
. xxxxxxxxx
. xxxxxxxxx
### overlap inversion (left)
. xxxxxxxxx
. xxxxxxxxx
### strange nesting of size and color (left)
. <2><3>x3>xx2>x
. <2><3>x3>xx2>x
### strange nesting of size and color (right)
. x<2>xx<3>x3>2>
. x<2>xx<3>x3>2>
----------
no whitespace at the end !