Converting diff-match-patch diffs to text ops

63 views
Skip to first unread message

aslak hellesoy

unread,
Dec 3, 2014, 8:02:41 AM12/3/14
to sha...@googlegroups.com
I just wanted to share a tiny piece of code I just wrote:

https://gist.github.com/aslakhellesoy/5236fd92080e386df9e7

It takes a diff produced by Google diff-match-patch to text ops.
I'm using this for merging in contents into a text doc from an external source.

Hope someone finds it useful.

Aslak

Joseph Gentle

unread,
Dec 3, 2014, 4:08:00 PM12/3/14
to sha...@googlegroups.com
Very cool :)
> --
> You received this message because you are subscribed to the Google Groups
> "ShareJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sharejs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages