Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 721 of 801  Not logged in ELOG logo
    icon2.gif   bug report to webkit.org , posted by Andrey on Wed Dec 28 16:09:30 2022 
It shound't be a "bug report", sorry. I have changed the category to "Info".

It seems to be really a bug in the WebKit core. I have created a bug report there. For reference: https://bugs.webkit.org/show_bug.cgi?id=249923

 
    icon2.gif   a hack around, posted by Andrey on Thu Dec 29 20:26:11 2022 
FYI.

Removing "wrap=hard" on the line #11461 in the elogd.cxx file resolves my problem.

 
    icon2.gif   a hack around, posted by Konstantin Olchanski on Fri Dec 30 00:46:03 2022 
- rsprintf("<textarea rows=%d cols=%d wrap=hard name=\"Text\">\n", height, width);
+ rsprintf("<textarea rows=%d cols=%d name=\"Text\">\n", height, width);
    icon2.gif   webkit bug, posted by Andrey Pashnin on Mon Jan 2 12:32:13 2023 
FYI

They seem to have accepted the bug report:
    icon2.gif   a hack around, posted by Stefan Ritt on Wed Jan 4 09:33:25 2023 
> - rsprintf("<textarea rows=%d cols=%d wrap=hard name=\"Text\">\n", height, width);
> + rsprintf("<textarea rows=%d cols=%d name=\"Text\">\n", height, width);
    icon2.gif   a hack around, posted by Stefan Ritt on Wed Jan 4 09:39:38 2023 Screenshot_2023-01-04_at_9.38.51_.pngScreenshot_2023-01-04_at_9.39.09_.png
Ahh, now I remember. Well, the I put that in like 25 years ago ;-)

Let's assume the user write a very long line and relies on the wrapping of the text box. So the input might look like the 
    icon2.gif   editing on a smartphone, posted by Andrey Pashnin on Wed Jan 4 10:05:38 2023 Screenshot_2023-01-04_at_10.06.02.png
oh! so, that's the cause of another problem I faced a while ago. 
When people edited an ELOG page on a narrow screen device (a.k.a smartphone) it put the extra CRLF and made the page look like the attachment below 
(it broke the original formatting).
    icon2.gif   editing on a smartphone, posted by Stefan Ritt on Wed Jan 4 10:12:43 2023 
Yepp, that's right. But without the "wrap=hard", you could get one single long line which is almost impossible to read. So there is no perfect solution
for all cases. I see three options
ELOG V3.1.5-3fb85fa6