diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js
index 058127b39..836165b16 100644
--- a/src/node/utils/ExportHtml.js
+++ b/src/node/utils/ExportHtml.js
@@ -446,7 +446,8 @@ function getHTMLFromAtext(pad, atext, authorColors)
lineContent: lineContent,
apool: apool,
attribLine: attribLines[i],
- text: textLines[i]
+ text: textLines[i],
+ padId: pad.id
}
var lineContentFromHook = hooks.callAllStr("getLineHTMLForExport", context, " ", " ", "");