X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDots.cpp;h=147e7627e48e9fc7791bb9cf66ad8470ab93c69b;hb=573500dd04f154f27318ac5ec469a337f97fe9f0;hp=45d2378550b8e4e5d07d4ca3b33ca026291e2808;hpb=8fa637a36f41afb0365eb59d7addbbe1baf3b372;p=lyx.git diff --git a/src/mathed/InsetMathDots.cpp b/src/mathed/InsetMathDots.cpp index 45d2378550..147e7627e4 100644 --- a/src/mathed/InsetMathDots.cpp +++ b/src/mathed/InsetMathDots.cpp @@ -93,18 +93,38 @@ void InsetMathDots::mathmlize(MathStream & os) const std::string ent; if (n == "dots" || n == "dotsc" || n == "dotso" || n == "ldots") ent = "…"; - else if (n == "adots") + else if (n == "adots" || n == "iddots") ent = "⋰"; else if (n == "cdots" || n == "dotsb" || n == "dotsi" || n == "dotsm") ent = "⋯"; else if (n == "ddots") ent = "⋱"; - else if (n == "iddots") - ent = "⋰"; else if (n == "vdots") ent = "⋮"; else LASSERT(false, ent = "…"); + os << MTag("mi") << from_ascii(ent) << ETag("mi"); +} + + +void InsetMathDots::htmlize(HtmlStream & os) const +{ + // which symbols we support is decided by what is listed in + // lib/symbols as generating a dots inset + docstring const & n = key_->name; + std::string ent; + if (n == "dots" || n == "dotsc" || n == "dotso" || n == "ldots") + ent = "…"; + else if (n == "adots" || n == "iddots") + ent = "⋰"; + else if (n == "cdots" || n == "dotsb" || n == "dotsi" || n == "dotsm") + ent = "⋯"; + else if (n == "ddots") + ent = "⋱"; + else if (n == "vdots") + ent = "⋮"; + else + LASSERT(false, ent = "#x02026;"); os << from_ascii(ent); }