summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-14 17:46:45 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-14 17:46:45 (GMT)
commitb1986fa8c3feaaba1d785d7f0c0fdba675a17c9d (patch)
tree2b720faa9a0667bccb46b9c2c6aa93f6187deb08
parent3112d709e3decbb6931f9484725a35e0630af9b8 (diff)
parent52f38d8f33c324a7cedcb596f606c960386ca652 (diff)
downloadDoxygen-b1986fa8c3feaaba1d785d7f0c0fdba675a17c9d.zip
Doxygen-b1986fa8c3feaaba1d785d7f0c0fdba675a17c9d.tar.gz
Doxygen-b1986fa8c3feaaba1d785d7f0c0fdba675a17c9d.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
-rw-r--r--src/docparser.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/docparser.h b/src/docparser.h
index 2117cbb..f256c56 100644
--- a/src/docparser.h
+++ b/src/docparser.h
@@ -642,7 +642,11 @@ class DocFormula : public DocNode
QCString relPath() const { return m_relPath; }
int id() const { return m_id; }
void accept(DocVisitor *v) override { v->visit(this); }
- bool isInline() { return m_text.length()>1 ? !(m_text.at(0)=='\\' && (m_text.at(1)=='{' || m_text.at(1)=='[')): TRUE; }
+ bool isInline() {
+ if (m_text.length()>1 && m_text.at(0)=='\\' && m_text.at(1)=='[') return false;
+ if (m_text.length()>7 && m_text.startsWith("\\begin{")) return false;
+ return true;
+ }
private:
QCString m_name;