summaryrefslogtreecommitdiffstats
path: root/src/rtfdocvisitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r--src/rtfdocvisitor.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 2221d2d..8cbfc4f 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -182,6 +182,13 @@ void RTFDocVisitor::visit(DocSymbol *s)
default: m_t << '?'; break;
}
break;
+ case DocSymbol::Slash: switch(s->letter())
+ {
+ case 'O' : m_t << '\330'; break;
+ case 'o' : m_t << '\370'; break;
+ default: m_t << '?'; break;
+ }
+ break;
case DocSymbol::Ring: switch(s->letter())
{
case 'A' : m_t << '\305'; break;
@@ -899,14 +906,14 @@ void RTFDocVisitor::visitPost(DocLink *lnk)
void RTFDocVisitor::visitPre(DocRef *ref)
{
if (m_hide) return;
- startLink(ref->ref(),ref->file(),ref->anchor());
+ if (!ref->file().isEmpty()) startLink(ref->ref(),ref->file(),ref->anchor());
if (!ref->hasLinkText()) filter(ref->targetTitle());
}
void RTFDocVisitor::visitPost(DocRef *ref)
{
if (m_hide) return;
- endLink(ref->ref());
+ if (!ref->file().isEmpty()) endLink(ref->ref());
m_t << " ";
}