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, '
');
+ }
}
}