Commit Graph

16 Commits

Author SHA1 Message Date
4c00eb2ee6 M!147 - Set project-wide emacs formatting rules
Closes https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/147
2024-11-04 14:50:38 +00:00
3f713be12b I#1384 - Links added in HTML mail composer get removed in plain text part
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1384
2023-09-15 10:33:52 +02:00
a818093e08 I#2290 - Composer: Preserve '\n' inside paragraph text
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2290
2023-03-17 09:11:46 +01:00
a8a5489680 Composer: Correct conversion of TABLE into Plain Text
The <TR> is similar to <BR> for the Plain text, thus when reading it
add the new line, if needed.

The WebKit returns correct `\n` in the node's innerText, but using it
as a plain text hides it for the user, thus split the lines and add
them as separate paragraphs.
2022-10-21 10:20:18 +02:00
406f1a242e I#1679 - e-convert.js: Do not re-wrap gmail_quote paragraphs ][
Fix a test case for list items.

Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1679
2021-11-08 15:27:50 +01:00
8e2853140b I#1679 - e-convert.js: Do not re-wrap gmail_quote paragraphs
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1679
2021-11-08 14:36:06 +01:00
f8e567b5b9 I#1392 - Pressing backspace in front of quoted line with link does not delete anything
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1392
2021-05-12 17:56:39 +02:00
461c01ad07 Composer: UL/OL not wrapped properly in Plain Text mode
In the Plain Text mode, when changing paragraph format to UL/OL, its width
was not properly set, which drew the long lines unwrapped. Switching to HTML
mode and back did set the expected wrap width.

Similarly, when converting HTML into plain text (on send), the wrap width did
not count width of the UL/OL prefix, making the line longer than it should be.
2020-12-02 13:57:19 +01:00
f7eeadfaa3 e-convert.js: Missing line breaks with nested paragraphs
When the HTML structure had nested paragraphs (DIV inside DIV), then
the resulting plain text version could have missing line breaks.
2020-10-15 12:51:02 +02:00
6c6ab53633 e-convert.js: Treat dash as a wrap-able character
WebKit can wrap after the dash ('-'), similarly as before a space,
thus let the EConvert to wrap in the same way.
2020-05-29 12:37:42 +02:00
c07bca12e0 M!53 - data/webkit/*.js: change the emacs mode to JavaScript
Closes: https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/53
2020-05-12 07:52:23 +00:00
c9706b642e I#884 - Composer: Text split for wrapping can produce invalid UTF-8 text
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/884
2020-04-30 19:11:08 +02:00
e5234102b7 e-convert.js: Correct conversion of citations with nested blocks
That's for the cases when a <blockquote> contains <div> with another
<div> or <pre>, where the leading quotation marks could double.
2020-04-28 12:20:00 +02:00
9ebe232b79 e-editor.js: Remove insignificant new lines when pre-processing loaded HTML
Insignificant new lines in the text are those in regular <div> and such,
where the white-space style doesn't mean to keep them. Those could cause
trouble when switching from HTML to the Plain Text mode, like to have doubled
new lines. WebKit doesn't remove them on its own, unfortunately, thus this
special processing is needed.
2020-04-28 10:45:01 +02:00
fcd4768b2e EWebKitEditor: Switch to JavaScriptCore API
The C DOM API had been deprecated since WebKitGTK 2.22. This is
the editor rewrite to use the new API.
2020-04-27 15:06:56 +02:00
1d7e3e75cc EWebView: Use JavaScriptCore API of WebKitGTK+
All the previews (in Mail, Contacts, Memos and Tasks) stop using
deprecated WebKitGTK+ DOM API through a WebExtension (and its D-Bus
API) and start using the JavaScriptCore API (and JavaScript as such).
This allows to lightweight the WebExtension for the EWebView
significantly, including drop of the D-Bus API of it, fully relying
on the Inter-Process-Communication of WebKitGTK+ itself.
2019-10-09 12:26:12 +02:00