Bug 385203

Summary: Text does not span full width of the webview
Product: [Frameworks and Libraries] kmarkdownwebview Reporter: Simone Gaiarin <simgunz>
Component: generalAssignee: Friedrich W. H. Kossebau <kossebau>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Word wrap and left alignment

Description Simone Gaiarin 2017-09-29 14:04:01 UTC
The text seems to be wrapped at a width of 80 characters or so. Instead, it should fill the full width of the webview.

Tested in kate.
Comment 1 Friedrich W. H. Kossebau 2017-09-29 23:43:18 UTC
Thanks for the report.

The behaviour you see is intended though, with readability in mind, and defined as such in the default CSS stylesheet used. So closing this bug as WONTFIX.

But I support and share the desire for being able to customize the behaviour as personally preferred. Right now the CSS used is hard-coded, though ideally one should be able to override this. Please subscribe to https://bugs.kde.org/show_bug.cgi?id=385219 which is about that very feature.
Comment 2 Simone Gaiarin 2017-10-01 08:06:01 UTC
Ok I subscribed to the other bug.

But still for the default stylesheet I would suggest at least to center the text if you want to keep that hard limit. As it is now looks pretty ugly with all that white space on the right side (see attachment).
Comment 3 Simone Gaiarin 2017-10-01 08:06:47 UTC
Created attachment 108115 [details]
Word wrap and left alignment
Comment 4 Friedrich W. H. Kossebau 2017-10-01 14:27:08 UTC
Agreed, centering would be a good idea.

Filed as https://bugs.kde.org/show_bug.cgi?id=385263