make getNewLineCharacter errorproof

This commit is contained in:
nightwing 2012-11-19 19:26:56 +04:00
commit 40563347e9

View file

@ -147,7 +147,7 @@ var Document = function(text) {
case "unix":
return "\n";
case "auto":
default:
return this.$autoNewLine;
}
};