Remove unused parameter `noDocType`.
My editor also auto-stripped some EOL whitespace.pull/3045/head
parent
879ae7c67d
commit
a0403ffc22
|
@ -76,7 +76,7 @@ exports.doExport = function(req, res, padId, type)
|
||||||
}
|
}
|
||||||
else if(type == "txt")
|
else if(type == "txt")
|
||||||
{
|
{
|
||||||
exporttxt.getPadTXTDocument(padId, req.params.rev, false, function(err, txt)
|
exporttxt.getPadTXTDocument(padId, req.params.rev, function(err, txt)
|
||||||
{
|
{
|
||||||
if(ERR(err)) return;
|
if(ERR(err)) return;
|
||||||
res.send(txt);
|
res.send(txt);
|
||||||
|
|
|
@ -192,7 +192,7 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
tags2close.push(i);
|
tags2close.push(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < propVals.length; i++)
|
for (var i = 0; i < propVals.length; i++)
|
||||||
{
|
{
|
||||||
if (propVals[i] === ENTER || propVals[i] === STAY)
|
if (propVals[i] === ENTER || propVals[i] === STAY)
|
||||||
|
@ -208,10 +208,10 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
{
|
{
|
||||||
chars--; // exclude newline at end of line, if present
|
chars--; // exclude newline at end of line, if present
|
||||||
}
|
}
|
||||||
|
|
||||||
var s = taker.take(chars);
|
var s = taker.take(chars);
|
||||||
|
|
||||||
// removes the characters with the code 12. Don't know where they come
|
// removes the characters with the code 12. Don't know where they come
|
||||||
// from but they break the abiword parser and are completly useless
|
// from but they break the abiword parser and are completly useless
|
||||||
// s = s.replace(String.fromCharCode(12), "");
|
// s = s.replace(String.fromCharCode(12), "");
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
|
|
||||||
assem.append(s);
|
assem.append(s);
|
||||||
} // end iteration over spans in line
|
} // end iteration over spans in line
|
||||||
|
|
||||||
var tags2close = [];
|
var tags2close = [];
|
||||||
for (var i = propVals.length - 1; i >= 0; i--)
|
for (var i = propVals.length - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
|
@ -231,7 +231,7 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
propVals[i] = false;
|
propVals[i] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end processNextChars
|
} // end processNextChars
|
||||||
processNextChars(text.length - idx);
|
processNextChars(text.length - idx);
|
||||||
return(assem.toString());
|
return(assem.toString());
|
||||||
|
@ -271,7 +271,7 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
}
|
}
|
||||||
exports.getTXTFromAtext = getTXTFromAtext;
|
exports.getTXTFromAtext = getTXTFromAtext;
|
||||||
|
|
||||||
exports.getPadTXTDocument = function (padId, revNum, noDocType, callback)
|
exports.getPadTXTDocument = function (padId, revNum, callback)
|
||||||
{
|
{
|
||||||
padManager.getPad(padId, function (err, pad)
|
padManager.getPad(padId, function (err, pad)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue