curran / curran/google-diff-match-patch

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

Aperta
#91 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
auto-migrated Priority-Medium Type-Defect
Lingua principale
Python
Stelle
17
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```
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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con il file DiffMatchPatch.cs allegato e riproduci la sequenza indicata di esportazione, copia, importazione e applicazione usando la configurazione C#/.NET specificata. Verifica che un round trip di una patch attraverso una casella di testo e Notepad abbia esito positivo senza un errore "Invalid patch mode"; il payload non indica un test del repository.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.