summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2014-12-08 19:08:12 +0000
committerJohn McLear <john@mclear.co.uk>2014-12-08 19:08:12 +0000
commit2218cbd252d23a188e772f03167d08dc05bd104c (patch)
tree597afafec5cad69bce85c0c79e769d9cc5e7a094 /src
parent6080de9d79626f2da3afe3b18f7dd230343cf1c4 (diff)
downloadetherpad-lite-2218cbd252d23a188e772f03167d08dc05bd104c.zip
docs
Diffstat (limited to 'src')
-rw-r--r--src/node/utils/ExportHtml.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js
index 01920da7..16c67618 100644
--- a/src/node/utils/ExportHtml.js
+++ b/src/node/utils/ExportHtml.js
@@ -425,6 +425,9 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
{
if(ERR(err, callback)) return;
+ // Include some Styles into the Head for Export
+ var stylesForExport = hooks.callAllStr("stylesForExport") || ''
+
var head =
(noDocType ? '' : '<!doctype html>\n') +
'<html lang="en">\n' + (noDocType ? '' : '<head>\n' +
@@ -442,6 +445,7 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
'ol ol ol ol ol ol{ list-style-type: lower-roman; }' +
'ol ol ol ol ol ol ol { list-style-type: decimal; }' +
'ol ol ol ol ol ol ol ol{ list-style-type: lower-latin; }' +
+ stylesForExport +
'</style>\n' + '</head>\n') +
'<body>';
@@ -452,6 +456,7 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
if(ERR(err, callback)) return;
callback(null, head + html + foot);
});
+
});
};