diff --git a/ast/help.ts b/ast/help.ts index a8850887..045df09e 100644 --- a/ast/help.ts +++ b/ast/help.ts @@ -2350,12 +2350,13 @@ module TDev { { try { var w = window.open("about:blank", "tdTopic" + Util.guidGen()); - w.document.write("" + CopyRenderer.css + var html = "" + CopyRenderer.css + "" + Util.htmlEscape(title) + "" + "" + "" + text - + ""); + + ""; + w.document.write(html); w.document.close(); } catch(e) { ModalDialog.info(":( can't print from here", "Your browser might have blocked the print page or try to print from another device..."); diff --git a/ast/render.ts b/ast/render.ts index 997f2eeb..af3e0b42 100644 --- a/ast/render.ts +++ b/ast/render.ts @@ -1106,6 +1106,7 @@ module TDev extends Renderer { static css = "