blah use async
parent
7cf0e4a9ae
commit
f2c155ee1a
|
@ -426,8 +426,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", padId) || ''
|
||||
hooks.aCallAll("stylesForExport", padId, function(err, stylesForExport){
|
||||
|
||||
// Core inclusion of head etc.
|
||||
var head =
|
||||
(noDocType ? '' : '<!doctype html>\n') +
|
||||
'<html lang="en">\n' + (noDocType ? '' : '<head>\n' +
|
||||
|
@ -448,7 +449,6 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
|||
stylesForExport +
|
||||
'</style>\n' + '</head>\n') +
|
||||
'<body>';
|
||||
|
||||
var foot = '</body>\n</html>\n';
|
||||
|
||||
getPadHTML(pad, revNum, function (err, html)
|
||||
|
@ -456,7 +456,7 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
|||
if(ERR(err, callback)) return;
|
||||
callback(null, head + html + foot);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue