Created attachment 128688 [details] Sample of HTML to build a test-case SUMMARY Signature written in HTML after sending/saving wrongly code by generator STEPS TO REPRODUCE 1. insert a piece of HTML at "signatures dialog" 2. create a new email (richtext enabled) 3. save as draft and open to display result OBSERVED RESULT HTML wrongly generated: - first 2 lines with a line-break (created by SHIFT+RETURN) are interpreted with a new paragraph and 2nd line showing an extra space in front - colored lines at end of signature-text inserted - last line showing wrong color ATTACHMENT see html-file with source (from signature) and saved result (draft) SOFTWARE/OS VERSIONS Linux/KDE Plasma: openSuSE Tumbleweed (available in About System) KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.70.0 Qt Version: 5.14.1 ADDITIONAL INFORMATION KDE Applications from Factory: 20.04.1 (built May-20-2020) most likely a duplicate to bug #358476
Thanks for test case. I will investigate it soon.
Git commit 5d4095836ef32e941479133015ae19fc003318ef by Laurent Montel. Committed on 23/05/2020 at 06:56. Pushed by mlaurent into branch 'master'. Start to fix HTML content - mangled generation M +1 -1 CMakeLists.txt M +1 -0 src/CMakeLists.txt A +275 -0 src/grantleebuilder/abstractmarkupbuilder.h [License: LGPL (v2+)] M +2 -1 src/grantleebuilder/autotests/plaintextmarkupbuildertest.cpp M +20 -2 src/grantleebuilder/autotests/texthtmlbuildertest.cpp M +2 -0 src/grantleebuilder/autotests/texthtmlbuildertest.h M +4 -4 src/grantleebuilder/markupdirector.cpp M +3 -3 src/grantleebuilder/markupdirector.h M +24 -24 src/grantleebuilder/markupdirector_p.h M +6 -0 src/grantleebuilder/plaintextmarkupbuilder.cpp M +7 -4 src/grantleebuilder/plaintextmarkupbuilder.h M +430 -32 src/grantleebuilder/texthtmlbuilder.cpp M +197 -3 src/grantleebuilder/texthtmlbuilder.h https://invent.kde.org/pim/kpimtextedit/commit/5d4095836ef32e941479133015ae19fc003318ef
Git commit f8dd428f24e7c41a3b01346766ab001b96ce98df by Laurent Montel. Committed on 23/05/2020 at 06:59. Pushed by mlaurent into branch 'release/20.04'. Start to fix HTML content - mangled generation (cherry picked from commit 5d4095836ef32e941479133015ae19fc003318ef) M +1 -0 src/CMakeLists.txt A +275 -0 src/grantleebuilder/abstractmarkupbuilder.h [License: LGPL (v2+)] M +2 -1 src/grantleebuilder/autotests/plaintextmarkupbuildertest.cpp M +65 -1 src/grantleebuilder/autotests/texthtmlbuildertest.cpp M +2 -0 src/grantleebuilder/autotests/texthtmlbuildertest.h M +4 -4 src/grantleebuilder/markupdirector.cpp M +3 -3 src/grantleebuilder/markupdirector.h M +24 -24 src/grantleebuilder/markupdirector_p.h M +6 -0 src/grantleebuilder/plaintextmarkupbuilder.cpp M +7 -4 src/grantleebuilder/plaintextmarkupbuilder.h M +430 -32 src/grantleebuilder/texthtmlbuilder.cpp M +197 -3 src/grantleebuilder/texthtmlbuilder.h https://invent.kde.org/pim/kpimtextedit/commit/f8dd428f24e7c41a3b01346766ab001b96ce98df
Git commit e884d21c998eabf19d87b13c650ed77ab4bbe16a by Laurent Montel. Committed on 23/05/2020 at 07:02. Pushed by mlaurent into branch 'master'. Fix Start to fix HTML content - mangled generation M +1 -1 CMakeLists.txt M +0 -1 messagecomposer/src/CMakeLists.txt M +3 -4 messagecomposer/src/composer-ng/richtextcomposerng.cpp M +0 -1 messageviewer/src/CMakeLists.txt M +1 -1 messageviewer/src/messagepartthemes/default/autotests/CMakeLists.txt M +2 -1 messageviewer/src/messagepartthemes/default/converthtmltoplaintext.cpp https://invent.kde.org/pim/messagelib/commit/e884d21c998eabf19d87b13c650ed77ab4bbe16a
Git commit e0d7ef9b891101961cd4d0d0a36f137fa30334a8 by Laurent Montel. Committed on 23/05/2020 at 07:02. Pushed by mlaurent into branch 'release/20.04'. Fix Start to fix HTML content - mangled generation (cherry picked from commit e884d21c998eabf19d87b13c650ed77ab4bbe16a) M +0 -1 messagecomposer/src/CMakeLists.txt M +3 -4 messagecomposer/src/composer-ng/richtextcomposerng.cpp M +0 -1 messageviewer/src/CMakeLists.txt M +1 -1 messageviewer/src/messagepartthemes/default/autotests/CMakeLists.txt M +2 -1 messageviewer/src/messagepartthemes/default/converthtmltoplaintext.cpp https://invent.kde.org/pim/messagelib/commit/e0d7ef9b891101961cd4d0d0a36f137fa30334a8
Git commit 8ebf1186705f14fc7f015d12c7d13998afa872b8 by Laurent Montel. Committed on 23/05/2020 at 10:22. Pushed by mlaurent into branch 'release/20.04'. Continue to fix Bug 421908 - HTML content - mangled generation M +25 -4 src/grantleebuilder/autotests/texthtmlbuildertest.cpp M +1 -0 src/grantleebuilder/autotests/texthtmlbuildertest.h M +2 -1 src/grantleebuilder/markupdirector.cpp https://invent.kde.org/pim/kpimtextedit/commit/8ebf1186705f14fc7f015d12c7d13998afa872b8
For me it's fixed in 5.14.2