Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/js/ann_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var ann_parser = {
///////////////////////////////////////////////////////
txt2ann: function(txt, dtd) {
var ann = {
text: txt,
text: txt.replace(/\r\n/g, '\n').replace(/\r/g, '\n'), // normalize line breaks. XML automatically does CRLF to LF conversion
dtd_name: dtd.name,
tags: [],
meta: {}, // the meta data of this annotation
Expand Down Expand Up @@ -1083,4 +1083,4 @@ var ann_parser = {
},


};
};