fix: Linewrap lines > 72ch in htmlized view (#4974)

* fix: Linewrap lines > 72ch in htmlized view

* fix: Make Safari break long words (URLs)

* Use same fix as d242f1ff1f
This commit is contained in:
Lars Eggert 2023-01-18 18:39:15 +02:00 committed by GitHub
parent faf68bc290
commit cfce342ff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -166,6 +166,11 @@ $tooltip-margin: inherit !default;
.rfcmarkup {
pre {
width: 72ch;
white-space: pre-wrap;
}
h1,
h2,
h3,

View file

@ -43,6 +43,12 @@
margin-bottom: var(--line);
margin-left: 3ch;
/* Really long lines can wrap when all else fails.
* This won't affect <pre> or <table>, or cases where soft-wrapping occurs.
* Mostly this exists so that long URLs wrap properly in Safari, which
* doesn't break words at '/' like other browsers. */
overflow-wrap: break-word;
h1, h2, h3, h4, h5 {
font-weight: bold;
font-size: inherit;