Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix code block overflow in PDF export (#2245)

Abdulrehman-Jaferb18cf277f6a9
diff --git a/packages/core/utils/templates/html/template.js b/packages/core/utils/templates/html/template.js
index f15e9f853..7f63d5375 100644
--- a/packages/core/utils/templates/html/template.js
+++ b/packages/core/utils/templates/html/template.js
@@ -182,9 +182,9 @@ const template = (data) => `<!DOCTYPE html>
font-family: PT Mono, Consolas, Monaco, "Andale Mono", "Ubuntu Mono",
monospace;
text-align: left;
- white-space: pre;
+ white-space: pre-wrap;
word-spacing: normal;
- word-break: normal;
+ word-break: break-word;
word-wrap: normal;
line-height: 1.5;