-- whitespace at the beginning :-) foobar foobarfoobar foobar foobar <4>foobar Text 3Text 4Text 1 Text 1Text 3Text 4 aouahfoobar Texte1Texte2Text3Text4 ------- dfs2afoo a b " "" " hifoo barake tut"a " I a I baaa bbb test" foo"a a toto" "" a""a "" "" "test "Test ""Test "ggg j" asd"" "" foo" "a a"<1> bob 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 <1><2><3><4><5><6><7><8><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> <3> <2> . <2> <3> <4> ### 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>xxx<2>xxx . xxx<2>xxxxxx ### 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>xxx<2>xxx . <1>xxx<2>xxxxxx ### nesting of colors and sizes -- 2 . <1>xxx<2>xxx<1>xxx . <1>xxx<2>xxxxxx ### overlap inversion (right) . xxxxxxxxx . xxxxxxxxx ### overlap inversion (left) . xxxxxxxxx . xxxxxxxxx ### strange nesting of size and color (left) . <3>x<2>x<2>xx . <2><3>xxxx ### strange nesting of size and color (right) . x<2>x<3><2>xx . x<2>xx<3>x ---------- no whitespace at the end !