Loading...
.message {
white-space: pre;
}.message {
white-space-collapse: preserve-breaks;
}'preserve-breaks' keeps the user's line breaks and collapses extra spaces while long lines still wrap.
white-space: pre, which keeps spaces but stops long lines from wrapping.white-space-collapse is used when only spacing must change, while the white-space shorthand also sets wrapping.white-space-collapse only controls spaces and line breaks. white-space is the shorthand that also sets text-wrap-mode.
Yes in effect. 'pre-line' is the shorthand form that combines 'preserve-breaks' with normal wrapping.
'break-spaces' preserves spaces like 'preserve', and also lets lines wrap after any space, so spaces take room at line ends.