ABenassi87 / ngx-text-diff

A Text Diff component for Angular

Home Page:https://ngx-text-diff.herokuapp.com/home

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line numbers are incorrect

paustint opened this issue · comments

@ABenassi87 - it looks like the line numbers are not being calculated accurately.

Guess of problem:
It seems like you remove all blank lines which makes it so the line numbers do not match up with the original. I would recommend to keep the blank lines if possible, or at least make sure the line number count honors them, even if the line numbers the user sees are not contiguous.

image