• Bug#267164: docdiff: difference detection is not optimal (space vs newl

    From Vincent Lefevre@1:229/2 to All on Sat Aug 21 01:10:09 2004
    From: [email protected]

    Package: docdiff
    Version: 0.3.0-1
    Severity: wishlist

    Consider the following files:

    tmp1 <==
    word1 word2 word3

    tmp2 <==
    word1 word2
    word2b word3

    tmp3 <==
    word1 word2 word2b word3

    (Below, I'm choosing --wdiff as this gives better readability in a mail.)

    $ docdiff --wdiff tmp1 tmp2
    word1 [-word2 -]{+word2
    word2b +}word3

    Here, word2 is shown as both deleted and added. The following output
    would have been better:

    word1 word2{+
    word2b+} word3

    The above problem doesn't occur with tmp3:

    $ docdiff --wdiff tmp1 tmp3
    word1 word2 {+word2b +}word3

    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (900, 'testing'), (200, 'unstable')
    Architecture: powerpc (ppc)
    Kernel: Linux 2.6.7-powerpc
    Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1

    Versions of packages docdiff depends on:
    ii ruby 1.8.1-8 An interpreter of object-oriented

    -- no debconf information


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)