I tried running the code you have given using Python 3.1.5 and Python 3.3.0. The result is always the same and I don't see any highlighting. Here is what I did on the Windows command line:<div><br></div><div>C:\Documents and Settings\shafigulinr>python -c "from difflib import *; <span style="font-family:arial,sans-serif;font-size:13px">s1 = ['bacon\n', 'eggs\n', 'ham\n', 'guido\n']; </span><span style="font-family:arial,sans-serif;font-size:13px">s2 = ['python\n', 'eggy\n', 'hamster\n', 'guido\n']; print(HtmlDiff().make_table(s1, s2))" > diff.html</span></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I'm also attaching the result file. </font></div><div><font face="arial, sans-serif"><br></font></div>I'm running Python 3.1.5/3.3.0 on a Windows XP Pro Version 2002, SP 3, Google Chrome browser, Version 22.0.1229.94 m<div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 4:46 PM, Andrew Svetlov <span dir="ltr"><<a href="mailto:andrew.svetlov@gmail.com" target="_blank">andrew.svetlov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Perhaps we have some misunderstanding.<br><br>I tried:<br><br>>>> from difflib import *<br>>>> s1 = ['bacon\n', 'eggs\n', 'ham\n', 'guido\n']<br>>>> s2 = ['python\n', 'eggy\n', 'hamster\n', 'guido\n']<br>

>>> d.make_table(s1, s2)<br>... LONG ENOUGH OUTPUT<br><br>when I've opened that output in browser the differences was definitely highlighted.<br><br>I've tried it on 3.2, 3.1 is open for security bugs only for now BTW.<br>

Please inform me how to reproduce your problem.<br>Also please keep in mind: 3.1 in security-only stage, if your issue has been fixed in 3.2 we'll do nothing to backport fix into 3.1 <br><br>Thanks.<br><div class="gmail_extra">
<div><div class="h5">
<br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 8:47 PM, rail shafigulin <span dir="ltr"><<a href="mailto:rail.shafigulin@gmail.com" target="_blank">rail.shafigulin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I can't see any highlighting. I'm attaching diff.html which I generated using the script provided here, <a href="http://docs.python.org/release/3.1.5/library/difflib.html#a-command-line-interface-to-difflib" target="_blank">http://docs.python.org/release/3.1.5/library/difflib.html#a-command-line-interface-to-difflib</a> . In the script I changed make_file to make_table to demonstrate the effect. I'm also attaching two text files I used for diff generation.<div>


<br></div><div>I'm running Python 3.1.5 on a Windows XP Pro Version 2002, SP 3.<br><div><br></div><div>Thanks.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Nov 1, 2012 at 6:34 AM, Andrew Svetlov <span dir="ltr"><<a href="mailto:andrew.svetlov@gmail.com" target="_blank">andrew.svetlov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It works, at least from my understanding of «highlighting».<div class="gmail_extra"><br><br><div class="gmail_quote"><div>


<div>On Tue, Oct 30, 2012 at 9:16 PM, rail shafigulin <span dir="ltr"><<a href="mailto:rail.shafigulin@gmail.com" target="_blank">rail.shafigulin@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>The description of HtmlDiff.make_table is inaccurate, <a href="http://docs.python.org/release/3.1.5/library/difflib.html#difflib.HtmlDiff.make_table" target="_blank">http://docs.python.org/release/3.1.5/library/difflib.html#difflib.HtmlDiff.make_table</a> It says the following </div>




<div><span style="line-height:20px;text-align:justify;font-size:16px;font-family:sans-serif"><br></span></div>"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."<div>




<br></div><div>However non of the rows in the tables are highlighted.</div><div><br></div><div>There are two possible fixes for this.</div><div><br></div><div>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.</div>




<div>2. The code does not reflect the documentation, i.e. make_table should generate the html string correctly.</div><div><br></div><div>I'm running Python 3.1.5 on a Windows Xp Pro Version 2002, SP 3.</div>
<br></div></div>_______________________________________________<br>
docs mailing list<br>
<a href="mailto:docs@python.org" target="_blank">docs@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/docs" target="_blank">http://mail.python.org/mailman/listinfo/docs</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Andrew Svetlov<br>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Thanks,<br>Andrew Svetlov<br>
</font></span></div>
</blockquote></div><br></div>