diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js
index 576d2b8fd..7f4874a8d 100644
--- a/src/node/utils/ExportHtml.js
+++ b/src/node/utils/ExportHtml.js
@@ -455,8 +455,10 @@ function getHTMLFromAtext(pad, atext, authorColors)
if (lineContentFromHook)
{
- if (context.lineContent === lineContent && lineContentFromHook !== true) {
- pieces.push(lineContentFromHook, ''); // Just to be compatible with plugins that are not updated to this solution
+ var lcToTestTrue = lineContentFromHook;
+ lcToTestTrue = lcToTestTrue.replace(/true/g, '').replace(/ /g, '');
+ if (context.lineContent === lineContent && lcToTestTrue.length) { // Just to be compatible with plugins that are not updated to this solution
+ pieces.push(lineContentFromHook, '');
} else {
pieces.push(context.lineContent, ''); // should be used instead of lineContentFromHook because context is passed through each hook with all it's updated from each plugin
}