summaryrefslogtreecommitdiff
path: root/github.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-14 11:45:27 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-14 11:45:27 +0200
commita5e84dc86786381b9247c757b5b4e47c02787b8f (patch)
tree36721c4eec9e618a20c4d724c9958f64a3eba2fe /github.js
parent7d0c563654d37aa525d4e8cf57edb7b72773083b (diff)
downloadsnap-a5e84dc86786381b9247c757b5b4e47c02787b8f.tar.gz
snap-a5e84dc86786381b9247c757b5b4e47c02787b8f.zip
WIP
Diffstat (limited to 'github.js')
-rw-r--r--github.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/github.js b/github.js
index c66ddc7..cf41e8b 100644
--- a/github.js
+++ b/github.js
@@ -125,7 +125,7 @@ GitHubBackend.prototype.saveProject = function (commitMessage, parentCommitSha,
pdata = ide.serializer.serialize(ide.stage);
media = ide.hasChangedMedia ?
ide.serializer.mediaXML(ide.projectName) : null;
- data = '<snapdata>' + pdata + media + '</snapdata>';
+ data = '<snapdata>\n' + pdata + '\n' + media + '\n</snapdata>';
// check if serialized data can be parsed back again
try {
@@ -175,6 +175,7 @@ GitHubBackend.prototype.saveProject = function (commitMessage, parentCommitSha,
var parentCode = atob(parentCodeFile.content), parentNotes = atob(parentNotesFile.content);
var headCode = atob(headCodeFile.content), headNotes = atob(headNoteFile.content);
var dmp = new diff_match_patch();
+ dmp.Match_Threshold = 0.1;
var codeDiff, noteDiff;
var codePatch, notePatch;