Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit cd1ffd54 authored by Volker Krause's avatar Volker Krause

Enable phone number extraction in KTextToHTML, when available

Summary: This allows dialing phone numbers mentioned in emails via KDE Connect.

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision:
parent fed84e0c
......@@ -25,6 +25,7 @@
#include <MessageViewer/HtmlWriter>
#include <MessageViewer/MessagePartRendererBase>
#include <kcoreaddons_version.h>
#include <KTextToHTML>
#include <QSharedPointer>
......@@ -112,7 +113,11 @@ void quotedHTML(const QString &s, MessageViewer::RenderContext *context, Message
const auto cssHelper = context->cssHelper();
KTextToHTML::Options convertFlags = KTextToHTML::PreserveSpaces | KTextToHTML::HighlightText;
KTextToHTML::Options convertFlags = KTextToHTML::PreserveSpaces | KTextToHTML::HighlightText
#if KCOREADDONS_VERSION_MINOR >= 56 // remove once we depend on KF5 5.56
| KTextToHTML::ConvertPhoneNumbers
if (context->showEmoticons()) {
convertFlags |= KTextToHTML::ReplaceSmileys;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment