diff --git a/src/core/operations/RenderMarkdown.mjs b/src/core/operations/RenderMarkdown.mjs index 0a23a4e3..6e569411 100644 --- a/src/core/operations/RenderMarkdown.mjs +++ b/src/core/operations/RenderMarkdown.mjs @@ -52,7 +52,7 @@ class RenderMarkdown extends Operation { highlight: function(str, lang) { if (lang && hljs.getLanguage(lang) && enableHighlighting) { try { - return hljs.highlight(lang, str).value; + return hljs.highlight(lang, str).value; } catch (__) {} } diff --git a/src/web/waiters/OutputWaiter.mjs b/src/web/waiters/OutputWaiter.mjs index e35b201f..88bf3a45 100755 --- a/src/web/waiters/OutputWaiter.mjs +++ b/src/web/waiters/OutputWaiter.mjs @@ -535,8 +535,8 @@ class OutputWaiter { file = new File([data], fileName); FileSaver.saveAs(file, fileName, false); } - - /** + + /** * Handler for file download as pdf events. */ async downloadPdf() { @@ -553,15 +553,15 @@ class OutputWaiter { const data = await dish.get(Dish.HTML); // console.log(data, "this is our html") const doc = new jsPDF("p", "px", "a4"); - - const width = doc.internal.pageSize.getWidth(); + + const width = doc.internal.pageSize.getWidth(); doc.html(data, { - autoPaging: "text", - width: width, - windowWidth: width, - callback: function (doc) { - doc.save(fileName); - } + autoPaging: "text", + width: width, + windowWidth: width, + callback: function (doc) { + doc.save(fileName); + } }); }