[docs] Inaccurate description of HtmlDiff.make_table, Python 3.1.5

rail shafigulin rail.shafigulin at gmail.com
Tue Oct 30 20:16:42 CET 2012


The description of HtmlDiff.make_table is inaccurate,
http://docs.python.org/release/3.1.5/library/difflib.html#difflib.HtmlDiff.make_table
It
says the following

"Compares fromlines and tolines (lists of strings) and returns a string
which is a complete HTML table showing line by line differences with
inter-line and intra-line changes highlighted."

However non of the rows in the tables are highlighted.

There are two possible fixes for this.

1. The documentation is incorrect in describing what should happen when
this method is called. Instead of what is says right now it should say that
the table is generated without showing any differences.
2. The code does not reflect the documentation, i.e. make_table should
generate the html string correctly.

I'm running Python 3.1.5 on a Windows Xp Pro Version 2002, SP 3.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20121030/6918c708/attachment.html>


More information about the docs mailing list