Created attachment 104981 [details] screenshot Plain text messages without any corresponding HTML version are displayed with a page width of only 2 characters. This problem happens on both Trojita 0.7 and Trojita git. I suspect this problem is due to having upgraded qtwebkit from version 5.7.1 to version 6.0, but I'm not sure. My GNU/Linux distribution is Gentoo Linux.
Yeah, it's likely a regression in their unofficial port of a new upstream webkit to Qt. As far as I can tell, Gentoo doesn't really ship that fork in their official repositories. Please report this to the forked QtWebKit upstream, we cannot really fix their regressions.
I filed an issue on the QtWebKit bug tracker: https://github.com/annulen/webkit/issues/511
*** Bug 381353 has been marked as a duplicate of this bug. ***
*** Bug 383045 has been marked as a duplicate of this bug. ***
*** Bug 383478 has been marked as a duplicate of this bug. ***
*** Bug 384339 has been marked as a duplicate of this bug. ***
hmm ... please could you consider keeping this open until fixed to prevent duplicates, as closed bugs don't show in the search linked from Trojitá's homepage?
Created attachment 108411 [details] initial fix of the plain text issue, uses webwngine. WIP. https://github.com/jsm222/trojita/tree/v0.7-webengine
(In reply to Jesper Schmitz Mouridsen from comment #8) > initial fix of the plain text issue, uses webwngine. WIP. Cool! Thanks, yes, adding a QWebEngine backend to be used as an alternative to the legacy QWebKit backend is definitely a way to go. Please make that at least buildtime-configurable, though, and submit these patches via Gerrit. See https://techbase.kde.org/Development/Gerrit for a small howto.
(In reply to Jan Kundrát from comment #9) > (In reply to Jesper Schmitz Mouridsen from comment #8) > > initial fix of the plain text issue, uses webwngine. WIP. > > Cool! Thanks, yes, adding a QWebEngine backend to be used as an alternative > to the legacy QWebKit backend is definitely a way to go. Please make that at > least buildtime-configurable, though, and submit these patches via Gerrit. > See https://techbase.kde.org/Development/Gerrit for a small howto. Done https://gerrit.vesnicky.cesnet.cz/r/#/c/946/
Magically fixed with update of qtwebkit. https://github.com/annulen/webkit/issues/511 https://github.com/annulen/webkit/commit/6faf11215e1af27d35e921ae669aa0251a01a1ab https://github.com/annulen/webkit/commit/76420459a13d9440b41864c93cb4ebb404bdab55 - successfully verified in Fedora.
For what it's worth, I'm still experiencing this problem with trojitá git-head (76151f1a, Oct 10 2018) on Ubuntu "bionic" 18.04. My qtwebkit packages are at 5.212.0; most of my other Qt packages are at 5.9.5-0ubuntu[something]: $ dpkg-query -l | fgrep -i qt | fgrep -i webkit ii libqt5webkit5:amd64 5.212.0~alpha2-7ubuntu1 amd64 Web content engine library for Qt ii libqt5webkit5-dev:amd64 5.212.0~alpha2-7ubuntu1 amd64 Web content engine library for Qt - development files ii libqtwebkit4:amd64 2.3.2-0ubuntu13 amd64 Web content engine library for Qt ii python3-pyqt5.qtwebkit 5.10.1+dfsg-1ubuntu2 amd64 Python 3 bindings for Qt5's WebKit module Both plaintext and HTML messages are displayed much narrower than they should be, but HTML messages seem to be only as narrow as the widest image in the message. Plain text messages are 1 or 2 characters wide.
(In reply to Wim Lewis from comment #12) > For what it's worth, I'm still experiencing this problem with trojitá > git-head (76151f1a, Oct 10 2018) on Ubuntu "bionic" 18.04. My qtwebkit > packages are at 5.212.0; most of my other Qt packages are at > 5.9.5-0ubuntu[something]: > > $ dpkg-query -l | fgrep -i qt | fgrep -i webkit > ii libqt5webkit5:amd64 5.212.0~alpha2-7ubuntu1 > amd64 Web content engine library for Qt > ii libqt5webkit5-dev:amd64 5.212.0~alpha2-7ubuntu1 > amd64 Web content engine library for Qt - development files > ii libqtwebkit4:amd64 2.3.2-0ubuntu13 > amd64 Web content engine library for Qt > ii python3-pyqt5.qtwebkit 5.10.1+dfsg-1ubuntu2 > amd64 Python 3 bindings for Qt5's WebKit module > > > Both plaintext and HTML messages are displayed much narrower than they > should be, but HTML messages seem to be only as narrow as the widest image > in the message. Plain text messages are 1 or 2 characters wide. I don't see that package for 18.04 Ubuntu I'm afraid: https://packages.ubuntu.com/search?suite=cosmic§ion=all&arch=any&keywords=libqt5webkit5&searchon=names Can you double-check that your qt webkit build contains the patches linked from https://github.com/annulen/webkit/issues/511#issuecomment-338685652 ? Either way, this is something which got fixed in upstream, and I am not aware of any possible workaround on Trojita's side, sorry.
*** Bug 410706 has been marked as a duplicate of this bug. ***