flatpress icon indicating copy to clipboard operation
flatpress copied to clipboard

one line of long code in the pre element

Open Fraenkiman opened this issue 2 years ago • 0 comments

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

Fraenkiman avatar Aug 31 '22 22:08 Fraenkiman