Skip to content

JsDiff newline trouble #18

Closed
Closed
@coderaiser

Description

@coderaiser

Hello,
thank you for good library :). It's very useful. I'm using it in my project.

I have trouble with applying patch of JsDiff on windows and linux.

server works on linux:

Index: cloudcmd.js
===================================================================
--- cloudcmd.js
+++ cloudcmd.js
@@ -1,5 +1,5 @@
+(function(){a
-(function(){
     'use strict';

     var DIR         = __dirname     + '/',
         main        = require(DIR   + 'lib/server/main'),

server works on windows:

Index: cloudcmd.js
===================================================================
--- cloudcmd.js
+++ cloudcmd.js
@@ -1,5 +1,5 @@
+(function(){a
-(function(){
\ No newline at end of file

     'use strict';

     var DIR         = __dirname     + '/',

As you see on windows OS there is an "\ No newline at end of file" string. I think that it's a reason why patch do not applying on windows.
For edeting text files I'm using Ace.

Can you help me please to figure out what's is going on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions