From 4d11e49878a81c701c93a9fa5f6aad849bb19957 Mon Sep 17 00:00:00 2001 From: gedion Date: Sat, 11 Aug 2012 13:08:28 -0500 Subject: [PATCH] Update src/node/utils/ExportHtml.js Added a hook for utils/ExportHtml.js --- src/node/utils/ExportHtml.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js index c1fcd16f7..c34627fec 100644 --- a/src/node/utils/ExportHtml.js +++ b/src/node/utils/ExportHtml.js @@ -402,20 +402,20 @@ function getHTMLFromAtext(pad, atext) } lists.length--; } - var newLineContent = hooks.callAllStr("getLineHTMLForExport", - { - line: line, - apool: apool, - attribLine: attribLines[i], - text: textLines[i] - }, " ", " ", ""); - if (newLineContent) - { - pieces.push(newLineContent, ''); - } else - { - pieces.push(lineContent, '
'); - } + var lineContentFromHook = hooks.callAllStr("getLineHTMLForExport", + { + line: line, + apool: apool, + attribLine: attribLines[i], + text: textLines[i] + }, " ", " ", ""); + if (lineContentFromHook) + { + pieces.push(lineContentFromHook, ''); + } else + { + pieces.push(lineContent, '
'); + } } }