diff -r 2b91abd9f5a4 -r 1fbcf202882d common/uilib.py --- a/common/uilib.py Mon Jun 29 14:12:18 2009 +0200 +++ b/common/uilib.py Thu Jul 02 10:35:03 2009 +0200 @@ -92,7 +92,9 @@ # fallback implementation, nicer one defined below if lxml is available def soup2xhtml(data, encoding): - return data + # normalize line break + # see http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7.1 + return u'\n'.join(data.splitlines()) # fallback implementation, nicer one defined below if lxml> 2.0 is available def safe_cut(text, length): @@ -123,6 +125,10 @@ Note: the function considers a string with no surrounding tag as valid if