summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-07 22:23:12 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-07 22:23:12 (GMT)
commitbd73456f37dfc2fe9c252ff6cbcea9ed21b2dcea (patch)
treea2c254ca3a5bc0da8d8ecd067436f4b6b30fcc00
parent436efb218557f74deb45705c0c8153265d502022 (diff)
parentb724106589a1bde5d1f3621051ffd8040f3861ba (diff)
downloadDoxygen-bd73456f37dfc2fe9c252ff6cbcea9ed21b2dcea.zip
Doxygen-bd73456f37dfc2fe9c252ff6cbcea9ed21b2dcea.tar.gz
Doxygen-bd73456f37dfc2fe9c252ff6cbcea9ed21b2dcea.tar.bz2
Merge pull request #63 from albert-github/feature/bug_668424
Bug 668424 - HTML links in RTF output are broken
-rw-r--r--src/rtfdocvisitor.cpp4
-rw-r--r--src/rtfgen.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 5d73c57..576581a 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -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 "
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp
index 9a7dbee..d8c34ee 100644
--- a/src/rtfgen.cpp
+++ b/src/rtfgen.cpp
@@ -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 ";