summaryrefslogtreecommitdiffstats
path: root/src/rtfdocvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2013-12-01 17:06:52 (GMT)
committeralbert-github <albert.tests@gmail.com>2013-12-01 17:06:52 (GMT)
commitb724106589a1bde5d1f3621051ffd8040f3861ba (patch)
treeae0ae0140d452ade6be4d4f4085fde5c463e402a /src/rtfdocvisitor.cpp
parent58058025a8357dcba0da4be0f6c3ddfec8c37839 (diff)
downloadDoxygen-b724106589a1bde5d1f3621051ffd8040f3861ba.zip
Doxygen-b724106589a1bde5d1f3621051ffd8040f3861ba.tar.gz
Doxygen-b724106589a1bde5d1f3621051ffd8040f3861ba.tar.bz2
Bug 668424 - HTML links in RTF output are broken
There are different types of hyperlinks: external and internal. The internal hyperlinks should have \\l behind the word HYPERLINK, the external shouldnt.
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r--src/rtfdocvisitor.cpp4
1 files changed, 2 insertions, 2 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 "