outputting "[math]" rather than nothing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17278
a592a061-630c-0410-9148-
cb99ea01b6c8
#include "InsetMath.h"
#include "MathData.h"
#include "MathStream.h"
+#include "gettext.h"
#include "debug.h"
#include "support/lstrings.h"
}
+int InsetMath::plaintext(Buffer const &, odocstream & os,
+ OutputParams const &) const
+{
+ docstring str = _("math");
+ os << "[" << str << "]";
+ return 2 + str.size();
+}
+
+
void InsetMath::normalize(NormalStream & os) const
{
os << '[' << name() << "] ";
/// plain text output in ucs4 encoding
int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const { return 0; };
+ OutputParams const &) const;
/// dump content to stderr for debugging
virtual void dump() const;