fix bug for getPadPlainText
parent
e9fb63f426
commit
392f39b623
|
@ -21,10 +21,11 @@
|
||||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||||
|
|
||||||
exports.getPadPlainText = function(pad, revNum){
|
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 textLines = atext.text.slice(0, -1).split('\n');
|
||||||
var attribLines = Changeset.splitAttributionLines(atext.attribs, atext.text);
|
var attribLines = Changeset.splitAttributionLines(atext.attribs, atext.text);
|
||||||
var apool = pad.pool();
|
var apool = pad.pool;
|
||||||
|
|
||||||
var pieces = [];
|
var pieces = [];
|
||||||
for (var i = 0; i < textLines.length; i++){
|
for (var i = 0; i < textLines.length; i++){
|
||||||
|
|
Loading…
Reference in New Issue