samg / diffy

Easy Diffing in Ruby
http://rubygems.org/gems/diffy
MIT License
1.27k stars 104 forks source link

split diff: show matching lines at same height #74

Open bmesuere opened 8 years ago

bmesuere commented 8 years ago

When using the split diff on 2 string with a different number of lines, the matching lines don't line up. For example: input1:

A
B
C
D

input 2:

A
D

The current (html) output is something like:

A                     A
B                     D
C
D

while I would prefer

A                     A
B
C
D                     D

Is this supported by Diffy or do you have any pointer on how to add such functionality?

pchaganti commented 8 years ago

👍

samg commented 8 years ago

@runar contributed the side-by-side functionality and might be able to take a look at this. Definitely sounds like a useful improvement, though I won't personally have time to implement it in the near future.