]> git.lyx.org Git - lyx.git/blobdiff - src/tabular_funcs.h
Fix deleting of paragraphs after undo (fix #236).
[lyx.git] / src / tabular_funcs.h
index 24691bf7ba25387cdffc1fc427f02a1804581a7f..fd686e1575e30461357edaee770475f9d2ab245b 100644 (file)
 template<class T>
 string const write_attribute(string const & name, T const & t)
 {
+       if (tostr(t).empty())
+               return string();
+       
        string str = " " + name + "=\"" + tostr(t) + "\"";
        return str;
 }
 template<>
 string const write_attribute(string const & name, bool const & b);
 template<>
+string const write_attribute(string const & name, int const & b);
+template<>
 string const write_attribute(string const & name, LyXLength const & value);
 string const tostr(LyXAlignment const & num);
 string const tostr(LyXTabular::VAlignment const & num);