allow custom metadata

This commit is contained in:
j 2014-05-19 22:58:00 +02:00
commit 996a754db5
12 changed files with 126 additions and 144 deletions

View file

@ -42,7 +42,7 @@ txtjs.open = function(url) {
scale;
text = Ox.encodeHTMLEntities(text)
.replace(/\r\n/g, '\n')
.replace(/\n/g, '<br>');
.replace(/[\r\n]/g, '<br>');
$text.html(text);
$scrollText.html(text);
var textHeight = $text[0].clientHeight,