as an image.
The math macro now exports as XHTML + MathML and can be viewed in
Firefox.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38190
a592a061-630c-0410-9148-
cb99ea01b6c8
void MathMacro::mathmlize(MathStream & os) const
{
- os << expanded_.cell(0);
+ MathData const & data = expanded_.cell(0);
+ if (data.empty()) {
+ // this means that we do not recognize the macro
+ throw MathExportException();
+ }
+ os << data;
}
void MathMacro::htmlize(HtmlStream & os) const
{
- os << expanded_.cell(0);
+ MathData const & data = expanded_.cell(0);
+ if (data.empty()) {
+ // this means that we do not recognize the macro
+ throw MathExportException();
+ }
+ os << data;
}