Merge pull request #2993 from ether/fixes-2945

fixes #2945
pull/3101/head
Stefan 2016-12-20 22:08:05 +01:00 committed by GitHub
commit efb25f417a
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ var authorManager = require("./AuthorManager");
var sessionManager = require("./SessionManager");
var async = require("async");
var exportHtml = require("../utils/ExportHtml");
var exportTxt = require("../utils/ExportTxt");
var importHtml = require("../utils/ImportHtml");
var cleanText = require("./Pad").cleanText;
var PadDiff = require("../utils/padDiff");
@ -271,7 +272,8 @@ exports.getText = function(padID, rev, callback)
//the client wants the latest text, lets return it to him
else
{
callback(null, {"text": pad.text()});
var padText = exportTxt.getTXTFromAtext(pad, pad.atext);
callback(null, {"text": padText});
}
});
}