Nikolai> ... since the text is actually a HTML file, it may contain a Nikolai> lot of characters with % (typically cell width definitions of Nikolai> tables). If these are contained in the file, the string format Nikolai> statement complains about illegal format character. Just double any literal % characters, e.g.: <table width="%(width)s%%"> Skip