flatpressblog / flatpress

FlatPress is a lightweight, easy-to-set-up flat-file blogging engine.
https://flatpress.org
GNU General Public License v2.0
185 stars 57 forks source link

one line of long code in the pre element #144

Closed Fraenkiman closed 1 year ago

Fraenkiman commented 2 years ago

Hello, everyone,

long single line Leggero-v2 style code wrapped by pre element overshoots the target in print preview.

einzeiliger-langer-code

I see two options here:

By overflow: auto; cut off the excess code and replace text-overflow: ellipsis; to signal that not all code is on off-paper

or

by white-space: pre-line; create a line break on the paper

Best Regards Frank