dont use HTML filter hooks on txt export
This commit is contained in:
parent
626ee97669
commit
bcf9c23b4e
|
@ -290,24 +290,6 @@ function getTXTFromAtext(pad, atext, authorColors)
|
|||
}else{
|
||||
pieces.push(lineContent, '\n');
|
||||
}
|
||||
|
||||
// I'm not too keen about using teh HTML export filters here, they could cause real pain in the future
|
||||
// I'd suggest supporting getLineTXTForExport
|
||||
var lineContentFromHook = hooks.callAllStr("getLineHTMLForExport",
|
||||
{
|
||||
line: line,
|
||||
apool: apool,
|
||||
attribLine: attribLines[i],
|
||||
text: textLines[i]
|
||||
}, " ", " ", "");
|
||||
if (lineContentFromHook)
|
||||
{
|
||||
pieces.push(lineContentFromHook, '');
|
||||
}
|
||||
else
|
||||
{
|
||||
// pieces.push(lineContent, '\n');
|
||||
}
|
||||
}
|
||||
|
||||
return pieces.join('');
|
||||
|
|
Loading…
Reference in New Issue