[New-bugs-announce] [issue27709] difflib.HtmlDiff produces different output from difflib.ndiff

SilentGhost report at bugs.python.org
Mon Aug 8 11:40:57 EDT 2016


New submission from SilentGhost:

msg264842 in issue26945 reports an odd results of HtmlDiff.make_file, digging into it I've noticed couple of things: different output to one generated directly from difflib.ndiff and underlying issue further up the stack that generates same faulty output with a slightly modified files.

The patch I'm attaching fixes the issue with different outputs, from make_file and ndiff, by not removing EOL characters, I had to re-generate expected test output file.

----------
components: Library (Lib)
files: donttrim.diff
keywords: patch
messages: 272173
nosy: SilentGhost, jlwing, loewis
priority: normal
severity: normal
stage: patch review
status: open
title: difflib.HtmlDiff produces different output from difflib.ndiff
type: behavior
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44049/donttrim.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27709>
_______________________________________


More information about the New-bugs-announce mailing list