Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 722 of 801  Not logged in ELOG logo
    icon2.gif   config option?, posted by Andrey Pashnin on Wed Jan 4 11:03:45 2023 
How about adding a config option? 
Ideally, it might be nice to have this option "per record" or "per logbook", but "per instance" should be good enough.
    icon2.gif   wrap "pre" tag in a "div" with fixed width, posted by Andrey Pashnin on Wed Jan 4 11:39:39 2023 (READ)_single_long_line.png(EDIT)_single_long_line.png
I'm sorry for being annoying... 
but I have tried to wrap the <pre> tag in a <div> and it seems to do the trick
(the text is a single line with repeating aaa-b-cc sequence)
    icon2.gif   config option?, posted by Stefan Ritt on Wed Jan 4 11:43:00 2023 
Ok, I added an option

Hard wrap = 0 | 1
    icon2.gif   config option?, posted by Andrey Pashnin on Wed Jan 4 11:53:35 2023 
That's great! Thank you very much. 
    icon2.gif   wrap "pre" tag in a "div" with fixed width, posted by Stefan Ritt on Wed Jan 4 12:17:46 2023 Screenshot_2023-01-04_at_12.16.47_.png
Didn't work for me. The text is just truncated after the width and no extra lines are added.
    icon2.gif   wrap "pre" tag in a "div" with fixed width, posted by Andrey Pashnin on Wed Jan 4 14:05:25 2023 
Sorry, I forgot to mention that I also added some styles to the <pre> tag:
style="white-space: normal"
(see the screenshot on my previous post)
    icon2.gif   wrap "pre" tag in a "div" with fixed width, posted by Stefan Ritt on Wed Jan 4 14:23:12 2023 
> Sorry, I forgot to mention that I also added some styles to the <pre> tag:
> style="white-space: normal"
> (see the screenshot on my previous post)
    icon2.gif   white-space: pre-wrap", posted by Andrey Pashnin on Wed Jan 4 14:38:54 2023 
> I guess we want "white-space: pre-wrap" which keeps the old line breaks.

Yep. You're right. Thanks!
ELOG V3.1.5-3fb85fa6