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

Andrew Svetlov andrew.svetlov at gmail.com
Thu Nov 1 11:34:20 CET 2012


It works, at least from my understanding of «highlighting».


On Tue, Oct 30, 2012 at 9:16 PM, rail shafigulin
<rail.shafigulin at gmail.com>wrote:

> 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.
>
> _______________________________________________
> docs mailing list
> docs at python.org
> http://mail.python.org/mailman/listinfo/docs
>
>


-- 
Thanks,
Andrew Svetlov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20121101/e13667af/attachment.html>


More information about the docs mailing list