Commit bd73456f authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge pull request #63 from albert-github/feature/bug_668424

Bug 668424 - HTML links in RTF output are broken
parents 436efb21 b7241065
......@@ -325,7 +325,7 @@ void RTFDocVisitor::visit(DocURL *u)
{
m_t << "{\\field "
"{\\*\\fldinst "
"{ HYPERLINK \\\\l \"";
"{ HYPERLINK \"";
if (u->isEmail()) m_t << "mailto:";
m_t << u->url();
m_t << "\" }"
......@@ -1130,7 +1130,7 @@ void RTFDocVisitor::visitPre(DocHRef *href)
{
m_t << "{\\field "
"{\\*\\fldinst "
"{ HYPERLINK \\\\l \"" << href->url() << "\" "
"{ HYPERLINK \"" << href->url() << "\" "
"}{}"
"}"
"{\\fldrslt "
......
......@@ -1049,7 +1049,7 @@ void RTFGenerator::startHtmlLink(const char *url)
if (Config_getBool("RTF_HYPERLINKS"))
{
t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
t << "{\\field {\\*\\fldinst { HYPERLINK \"";
t << url;
t << "\" }{}";
t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
......
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