[Bug 204253] kompare has troubles parsing certain unified diff output

Markus Schöpflin markus.schoepflin at comsoft.de
Tue Aug 18 13:14:16 CEST 2009


https://bugs.kde.org/show_bug.cgi?id=204253





--- Comment #3 from Markus Schöpflin <markus schoepflin comsoft de>  2009-08-18 13:13:42 ---
I had a look at the sources for kompare. The problem seems to be that
ParserBase::parseUnifiedHunkBody() stops reading the hunk body as soon as it
finds a line matching m_unifiedDiffHeader1 (e.g. '--- blahblah'). This happens
because ParserBase::matchesUnifiedHunkLine() returns False for such lines.

I think the parsing of the hunk body must take into account the full
information from the hunk header, because otherwise you cannot reliably tell
where the hunk body ends.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kompare-devel mailing list