summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-02-09 18:48:34 (GMT)
committerGitHub <noreply@github.com>2019-02-09 18:48:34 (GMT)
commit78b7975759f891fcbf8445e498c3fc9afcb61d19 (patch)
tree53dc789b325ec0c8c1278544b3a39287bd216742 /src
parent6c0e38a675393c5053c09d51b4ff49e15e8ba300 (diff)
parent3e74470aace3c7a53d02bdfe9590a379c9269b45 (diff)
downloadDoxygen-78b7975759f891fcbf8445e498c3fc9afcb61d19.zip
Doxygen-78b7975759f891fcbf8445e498c3fc9afcb61d19.tar.gz
Doxygen-78b7975759f891fcbf8445e498c3fc9afcb61d19.tar.bz2
Merge pull request #6811 from albert-github/feature/bug_141919
Bug 141919 - Wrong param and exception style in RTF output
Diffstat (limited to 'src')
-rw-r--r--src/docbookvisitor.cpp10
-rw-r--r--src/rtfdocvisitor.cpp4
2 files changed, 6 insertions, 8 deletions
diff --git a/src/docbookvisitor.cpp b/src/docbookvisitor.cpp
index 3988390..c36bb00 100644
--- a/src/docbookvisitor.cpp
+++ b/src/docbookvisitor.cpp
@@ -767,15 +767,13 @@ DB_VIS_C
}
break;
case DocSimpleSect::User:
+ case DocSimpleSect::Rcs:
+ case DocSimpleSect::Unknown:
if (s->hasTitle())
m_t << "<formalpara>" << endl;
else
m_t << "<para>" << endl;
break;
- case DocSimpleSect::Rcs:
- case DocSimpleSect::Unknown:
- m_t << "<para>" << endl;
- break;
}
}
@@ -785,11 +783,9 @@ DB_VIS_C
if (m_hide) return;
switch(s->type())
{
+ case DocSimpleSect::User:
case DocSimpleSect::Rcs:
case DocSimpleSect::Unknown:
- m_t << "</para>" << endl;
- break;
- case DocSimpleSect::User:
if (s->hasTitle())
m_t << "</formalpara>" << endl;
else
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 1e2bb89..f44da77 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -771,16 +771,18 @@ void RTFDocVisitor::visitPre(DocSimpleSect *s)
m_t << "}"; // end bold
incIndentLevel();
m_t << rtf_Style_Reset << getStyle("DescContinue");
+ m_t << "{\\s17 \\sa60 \\sb30\n";
}
m_lastIsPara=FALSE;
}
-void RTFDocVisitor::visitPost(DocSimpleSect *)
+void RTFDocVisitor::visitPost(DocSimpleSect *s)
{
if (m_hide) return;
DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocSimpleSect)}\n");
if (!m_lastIsPara) m_t << "\\par" << endl;
decIndentLevel();
+ if (s->type()!=DocSimpleSect::User && s->type()!=DocSimpleSect::Rcs) m_t << "}";
m_t << "}"; // end desc
m_lastIsPara=TRUE;
}