From eed0b0ca8c546b886440e3a11eb3b845f951f9d1 Mon Sep 17 00:00:00 2001 From: Peter Wone Date: Sun, 1 Oct 2023 19:10:29 +1000 Subject: [PATCH 1/2] fix 272 --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/html-document-builder.ts | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f166b4..f6c2789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +### 0.11.17 + +- #272 bugfix + +### 0.11.16 + +- Line breaking bugfix + ### 0.11.14 - Support for document renderers to linking and serving script files diff --git a/package.json b/package.json index 513472e..4b45f21 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-print", "displayName": "Print", "description": "Rendered Markdown, coloured code.", - "version": "0.11.15", + "version": "0.11.17", "icon": "assets/vscode-print-128.png", "author": { "name": "Peter Wone", diff --git a/src/html-document-builder.ts b/src/html-document-builder.ts index f31b63e..02f0b3b 100644 --- a/src/html-document-builder.ts +++ b/src/html-document-builder.ts @@ -50,6 +50,7 @@ export class HtmlDocumentBuilder { .replace(/VSCODE_PRINT_DOCUMENT_(?:TITLE|HEADING)/g, "

Selected files

") .replace("VSCODE_PRINT_PRINT_AND_CLOSE", printConfig.printAndClose) .replace("VSCODE_PRINT_CONTENT", () => `${summary}\n${composite}`) // replacer fn suppresses interpretation of $ + .replace("VSCODE_PRINT_SCRIPT_TAGS", "") .replace("VSCODE_PRINT_STYLESHEET_LINKS", '\n' + '\t\n' + @@ -88,6 +89,7 @@ export class HtmlDocumentBuilder { .replace(/VSCODE_PRINT_DOCUMENT_HEADING/g, `

Folder ${this.workspacePath(this.uri)}

`) .replace("VSCODE_PRINT_PRINT_AND_CLOSE", printConfig.printAndClose) .replace("VSCODE_PRINT_CONTENT", () => `${summary}\n${composite}`) // replacer fn suppresses interpretation of $ + .replace("VSCODE_PRINT_SCRIPT_TAGS", "") .replace("VSCODE_PRINT_STYLESHEET_LINKS", '\n' + '\t\n' + From 5ee4e948a770e07844ba7b3d5686143dcee6c0d5 Mon Sep 17 00:00:00 2001 From: Peter Wone Date: Sun, 1 Oct 2023 19:10:29 +1000 Subject: [PATCH 2/2] fix 272 --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/html-document-builder.ts | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e0a600..f6c2789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +### 0.11.17 + +- #272 bugfix + ### 0.11.16 - Line breaking bugfix diff --git a/package.json b/package.json index 6e928e6..4b45f21 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-print", "displayName": "Print", "description": "Rendered Markdown, coloured code.", - "version": "0.11.16", + "version": "0.11.17", "icon": "assets/vscode-print-128.png", "author": { "name": "Peter Wone", diff --git a/src/html-document-builder.ts b/src/html-document-builder.ts index f31b63e..02f0b3b 100644 --- a/src/html-document-builder.ts +++ b/src/html-document-builder.ts @@ -50,6 +50,7 @@ export class HtmlDocumentBuilder { .replace(/VSCODE_PRINT_DOCUMENT_(?:TITLE|HEADING)/g, "

Selected files

") .replace("VSCODE_PRINT_PRINT_AND_CLOSE", printConfig.printAndClose) .replace("VSCODE_PRINT_CONTENT", () => `${summary}\n${composite}`) // replacer fn suppresses interpretation of $ + .replace("VSCODE_PRINT_SCRIPT_TAGS", "") .replace("VSCODE_PRINT_STYLESHEET_LINKS", '\n' + '\t\n' + @@ -88,6 +89,7 @@ export class HtmlDocumentBuilder { .replace(/VSCODE_PRINT_DOCUMENT_HEADING/g, `

Folder ${this.workspacePath(this.uri)}

`) .replace("VSCODE_PRINT_PRINT_AND_CLOSE", printConfig.printAndClose) .replace("VSCODE_PRINT_CONTENT", () => `${summary}\n${composite}`) // replacer fn suppresses interpretation of $ + .replace("VSCODE_PRINT_SCRIPT_TAGS", "") .replace("VSCODE_PRINT_STYLESHEET_LINKS", '\n' + '\t\n' +