when exporting HTML include html and body
This commit is contained in:
parent
36814ed42b
commit
c723aefdfe
|
@ -243,6 +243,8 @@ exports.getHTML = function(padID, rev, callback)
|
||||||
exportHtml.getPadHTML(pad, rev, function(err, html)
|
exportHtml.getPadHTML(pad, rev, function(err, html)
|
||||||
{
|
{
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
|
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
||||||
|
html += "</body></html>";
|
||||||
data = {html: html};
|
data = {html: html};
|
||||||
callback(null, data);
|
callback(null, data);
|
||||||
});
|
});
|
||||||
|
@ -253,9 +255,9 @@ exports.getHTML = function(padID, rev, callback)
|
||||||
exportHtml.getPadHTML(pad, undefined, function (err, html)
|
exportHtml.getPadHTML(pad, undefined, function (err, html)
|
||||||
{
|
{
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
|
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
||||||
|
html += "</body></html>";
|
||||||
data = {html: html};
|
data = {html: html};
|
||||||
|
|
||||||
callback(null, data);
|
callback(null, data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue