]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/math.cpp
Fix bug #7668 (cosmetic whitespace issues)
[lyx.git] / src / tex2lyx / math.cpp
index f615926efa6e2d6daf0eae8902b58891e6025c18..d17d1d90174a5e11c01fd49a9318c14c5d7acbdd 100644 (file)
@@ -27,6 +27,16 @@ bool is_math_env(string const & name)
 }
 
 
+bool is_display_math_env(string const & name)
+{
+       CommandMap::const_iterator it = known_math_environments.find(name);
+       if (it != known_math_environments.end())
+               if (!it->second.empty())
+                       return it->second.back() == displaymath;
+       return false;
+}
+
+
 void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode)
 {
        while (p.good()) {