curran / curran/google-diff-match-patch

C# uses \n instead of \n\r or Environment.NewLine

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
Python
Stars
17
Forks
2
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?

1. Use the C# code to create a List of Patches.
2. "Export" it using patch_toText to a text box.
3. Copy the text to notepad for example.
4. Reverse the process by copying the text back into a text box.
3. "Import" it using patch_fromText.
4. Apply patch.

What is the expected output? What do you see instead?

Patch should be correctly applied, but usually "Invalid patch mode" error is
thrown.

What version of the product are you using? On what operating system?

Download 20121119, Win7 64bit, VS 2012, .Net 4.5.

Please provide any additional information below.

Attached is the C# file using Environment.NewLine.
```

Original issue reported on code.google.com by `jamiekit...@gmail.com` on 18 Sep 2013 at 11:38

Attachments:
- [DiffMatchPatch.cs](https://storage.googleapis.com/google-code-attachments/google-diff-match-patch/issue-91/comment-0/DiffMatchPatch.cs)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.