minad / olelo

Wiki with git backend
MIT License
241 stars 44 forks source link

implement intra line diffs #2

Closed ghost closed 11 years ago

ghost commented 14 years ago

an example is this difference, which shows every word is different, even if (at least from outside) most of the text looks the same: http://git.awiki.org/changes/742d2426c28a77ee44a3c7232a8739ae9f73d18c

minad commented 14 years ago

This is about line endings. I once added a regex to translate to \n in text files. You can compare the text files for that with hexdump -c: http://git.awiki.org/Home/version/ec3c?output=text http://git.awiki.org/Home/version/742d?output=text

The diff comes directly from the git binary, so no bug here.

cout commented 14 years ago

Maybe I'm reading too much into this bug, but I read the original bug report as a request to implement intra-line diffs. Obviously the given example is a bad one.

Intra-line diffs could fairly easily be implemented with the htmldiff module.

minad commented 11 years ago

currently not planned