diff options
author | John McLear <john@mclear.co.uk> | 2015-01-24 13:39:45 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-01-24 13:39:45 +0000 |
commit | c798a27ad80edb1fab701f5bdbfce135b4b9d2e8 (patch) | |
tree | 53671a2f4d718303e990a2098189fed6be227aad /src/node | |
parent | 378ed022698f044c662f6e1310d161d52c3d7df9 (diff) | |
download | etherpad-lite-c798a27ad80edb1fab701f5bdbfce135b4b9d2e8.zip |
boop
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/utils/ExportHtml.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js index 10c2fe5f..962f6993 100644 --- a/src/node/utils/ExportHtml.js +++ b/src/node/utils/ExportHtml.js @@ -419,13 +419,14 @@ function getHTMLFromAtext(pad, atext, authorColors) text: textLines[i] } - // first context below seems superfluos + // See https://github.com/ether/etherpad-lite/issues/2486 hooks.aCallAll("asyncLineHTMLForExport", context, function(err, newLineFunction){ + // For each function returned by the hook call + // Process the text based on the function newLineFunction.forEach(function(fn){ context.lineContent = fn(context); // note the fn }); - //new Line Content is an array of each of the responses from aCallAll.. - // We should return a function to it + // We now have a line that has been processed by each hook function lineContent = context.lineContent; // modified lineContent here }); |