From fec6aacee57adbd7fbc5795b760c7dbcb511099a Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 18 Oct 2021 22:51:17 +1300 Subject: [PATCH 1/2] Add `word-break: break-word` to fix code wrapping --- themes/5ePhb.style.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less index 607a13cca..7cc427a98 100644 --- a/themes/5ePhb.style.less +++ b/themes/5ePhb.style.less @@ -513,7 +513,8 @@ body { color : #58180d; background-color : #faf7ea; border-radius : 4px; - white-space : pre-wrap + white-space : pre-wrap; + word-break : break-word; } pre code{ From 82fc581125675292e1b4d705e3438d7b57899c8d Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Thu, 9 Dec 2021 22:19:53 -0500 Subject: [PATCH 2/2] Change to overflow-wrap : break-word --- themes/5ePhb.style.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less index 562362fd2..e9e404d13 100644 --- a/themes/5ePhb.style.less +++ b/themes/5ePhb.style.less @@ -512,7 +512,7 @@ body { background-color : #faf7ea; border-radius : 4px; white-space : pre-wrap; - word-break : break-word; + overflow-wrap : break-word; } pre code{