summaryrefslogtreecommitdiffstats
path: root/src/latexdocvisitor.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-05-16 10:07:22 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-05-16 10:07:22 (GMT)
commit44904635bc78fae2ce60fc942cc5b7cba9958a34 (patch)
tree4031df0b930759962f9126116d333cec031ca5cb /src/latexdocvisitor.cpp
parent23885c2f2db71f003578f0d1b44555c067bfd7a5 (diff)
downloadDoxygen-44904635bc78fae2ce60fc942cc5b7cba9958a34.zip
Doxygen-44904635bc78fae2ce60fc942cc5b7cba9958a34.tar.gz
Doxygen-44904635bc78fae2ce60fc942cc5b7cba9958a34.tar.bz2
Release-1.4.3
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r--src/latexdocvisitor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 8cbefc0..719c357 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -124,8 +124,9 @@ void LatexDocVisitor::visit(DocSymbol *s)
{
case DocSymbol::BSlash: m_t << "$\\backslash$"; break;
case DocSymbol::At: m_t << "@"; break;
- case DocSymbol::Less: m_t << "$<$"; break;
- case DocSymbol::Greater: m_t << "$>$"; break;
+ case DocSymbol::Less: if (m_insidePre) m_t << "<"; else m_t << "$<$";
+ break;
+ case DocSymbol::Greater: if (m_insidePre) m_t << ">"; else m_t << "$>$"; break;
case DocSymbol::Amp: m_t << "\\&"; break;
case DocSymbol::Dollar: m_t << "\\$"; break;
case DocSymbol::Hash: m_t << "\\#"; break;