=================================== 20130824 (Saturday, 24 August 2013) =================================== The bug in my :mod:`html2xhtml ` (see :blogref:`20130821`) was even more complex than what I was able to imagine that day. For example the following HTML:: Should become:: After trying to reinvent the wheel and realizing that it was getting sophisticated I discovered `pytidylib `_. VoilĂ , all problems solved! My :mod:`html2xhtml ` is now just a wrapper to `pytidylib `_ (which itself is a wrapper to `HTML Tidy `_). Added new file :srcref:`/requirements.txt` which contains "pytidylib". Install it either using `apt-get install python-tidylib` or:: $ sudo apt-get install libtidy-dev $ pip install pytidylib Also updated the `requirements.txt` for :ref:`welfare` which is at https://code.google.com/p/lino-welfare/source/browse/requirements.txt