Bug 437670 - Rich text editing causes journal to show html code in Jounal View
Summary: Rich text editing causes journal to show html code in Jounal View
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: journalview (show other bugs)
Version: 5.17.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-25 16:47 UTC by medin
Modified: 2021-07-02 14:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Rich text editing causes journal to show html code in Jounal View (173.37 KB, image/png)
2021-05-25 16:47 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-05-25 16:47:42 UTC
Created attachment 138781 [details]
Rich text editing causes journal to show html code in Jounal View

If you edit a jounal using Rich text (italic, bold, underline...) then you go Journal View you will find that journal shows html code is visible.
Comment 1 gjditchfield 2021-06-18 01:11:13 UTC
1) Switch to the Journal view.
2) Create a journal with a plain-text description.
3) Edit the journal, enable rich text, and save it.

The journal view will show raw HTML.  So will tool tips in other views, and the printed journals.  Events and to-dos can also be made to misbehave.
Comment 2 Bug Janitor Service 2021-06-18 01:34:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kcalendarcore/-/merge_requests/42
Comment 3 gjditchfield 2021-07-02 14:53:49 UTC
Git commit cf903ae1dea07865ace65559425a39d6573ea60a by Glen Ditchfield, on behalf of Glen Ditchfield.
Committed on 26/06/2021 at 15:11.
Pushed by gditchfield into branch 'master'.

Assign and compare more Incidence::Private members

`Incidence::Private::init()`, at the end of a call chain starting at
`IncidenceBase::operator=()`, did not copy `mDescriptionIsRich`, causing

This patch copies `mDescriptionIsRich` and other ignored fields.  It also
adds comparisons for them to `Incidence::equals()`.  Finally,
`JournalTest::testAssign()` did not actually test assignment.

M  +6    -2    autotests/testjournal.cpp
M  +7    -0    src/incidence.cpp

https://invent.kde.org/frameworks/kcalendarcore/commit/cf903ae1dea07865ace65559425a39d6573ea60a