fix bug for getPadPlainText

This commit is contained in:
Masaru Nagaku 2018-08-10 18:04:49 +09:00 committed by muxator
parent e9fb63f426
commit 392f39b623

View file

@ -21,10 +21,11 @@
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
exports.getPadPlainText = function(pad, revNum){
var atext = ((revNum !== undefined) ? pad.getInternalRevisionAText(revNum) : pad.atext());
var _analyzeLine = exports._analyzeLine;
var atext = ((revNum !== undefined) ? pad.getInternalRevisionAText(revNum) : pad.atext);
var textLines = atext.text.slice(0, -1).split('\n');
var attribLines = Changeset.splitAttributionLines(atext.attribs, atext.text);
var apool = pad.pool();
var apool = pad.pool;
var pieces = [];
for (var i = 0; i < textLines.length; i++){