Hello,
I use parsoid to publish email messages into wiki and have a little issue. Sometimes generated article has "preformatted" fragments that do not have any special formatting in source text. After investigation I discovered that it is caused by spaces that start new line in HTML text. When source HTML of email is viewed in browser these spaces do not have any effect, but after converting to wikitext they became part of markup. Next, trying to discover they way parsoid works I have seen that normally these spaces became surronded with <nowiki> tag, but in some circumtances it does not happen.
So I made test HTML file to see different results of converting:
<html> <head> </head> <body>
<p>test2<span> test3 </span></p>
<p><span>test2 test3 </span></p>
<p>textx<span>test2 test3 </span></p>
</body> </html>
The result of conversion is:
test2<span> test3 </span>
<span>test2 <nowiki> </nowiki>test3 </span>
textx<span>test2 <nowiki> </nowiki>test3 </span>
It seems that if new line is just at end of <span> tag, <nowiki> is not inserted.