X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDots.cpp;h=147e7627e48e9fc7791bb9cf66ad8470ab93c69b;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=8ca2a1e46981c9ed5f4a40f95803b143434360ca;hpb=bae47150c634ca48b7a0a5561c6332720e0f1e61;p=lyx.git diff --git a/src/mathed/InsetMathDots.cpp b/src/mathed/InsetMathDots.cpp index 8ca2a1e469..147e7627e4 100644 --- a/src/mathed/InsetMathDots.cpp +++ b/src/mathed/InsetMathDots.cpp @@ -93,14 +93,12 @@ 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 @@ -108,4 +106,26 @@ void InsetMathDots::mathmlize(MathStream & os) const 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); +} + } // namespace lyx