wdiff-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[wdiff-bugs] [bug #29379] wdiff hides space/tab differences


From: LRN
Subject: [wdiff-bugs] [bug #29379] wdiff hides space/tab differences
Date: Sun, 26 Aug 2012 17:09:19 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0

Follow-up Comment #2, bug #29379 (project wdiff):

Here's a quick hack that makes wdiff perceive spaces as words.
It's rather bad, and breaks in cases where on the left side line ends with
spaces, while on the right side spaces are removed, i.e.:

left:
foo<spaces>nbar
rigth:
foonbar

might have other bugs as well.

Main problem is that currently wdiff doesn't handle newlines. Instead it
considers newlines to be spaces (since isspace('n') returns non-0). When it
skips whitespace, it skips both trailing spaces of a line, the newline ('rn'
or 'n' - it makes no difference), and leading spaces on the next line.
With diffable spaces wdiff must interpret trailing spaces as a separate word,
newline as newline (somehow), and leading spaces as another word.
So it's all rather messy right now.

(file #26427)
    _______________________________________________________

Additional Item Attachment:

File name: spacediffs.patch               Size:6 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29379>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]