Le 22 avril 2025 11:49:32 GMT+02:00, Scott Kostyshak <skost...@lyx.org> a écrit : >On Mon, Apr 21, 2025 at 10:54:17AM +0000, Jean-Marc Lasgouttes wrote: >> commit 0ed7820843d2b4dd09240d6e6145ddb013d090b8 >> Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> >> Date: Mon Apr 21 12:53:34 2025 +0200 >> >> Fix handling of \int with external math tools >> --- >> src/mathed/MathExtern.cpp | 7 +++---- >> 1 file changed, 3 insertions(+), 4 deletions(-) >> >> diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp >> index caa05aeadc..c8c5acf00e 100644 >> --- a/src/mathed/MathExtern.cpp >> +++ b/src/mathed/MathExtern.cpp >> @@ -292,7 +292,7 @@ bool testString(MathAtom const & at, char const * const >> str) >> >> bool testSymbol(MathAtom const & at, docstring const & name) >> { >> - return at->asSymbolInset() && at->asSymbolInset()->name() == name; >> + return (at->asSymbolInset() || at->asMacro()) && at->name() == name; >> } >> >> >> @@ -373,9 +373,8 @@ void splitScripts(MathData & ar) >> >> if (script->nuc().size() == 1) { >> // leave alone sums and integrals >> - InsetMathSymbol const * sym = >> - script->nuc().front()->asSymbolInset(); >> - if (sym && (sym->name() == "sum" || sym->name() == >> "int")) >> + MathAtom const & atom = script->nuc().front(); >> + if (testSymbol(atom, "sum") || testSymbol(atom, "int")) >> continue; >> } > >I think this commit broke something with the XHTML export. > >The following ctest now fails: > > export/doc/UserGuide_xhtml (Failed) > >I don't know what the specific error is but I can figure it out and give >more details tomorrow when I'm at my computer with the ctests set up. > >Scott
Thanks for the heads up. This is just an html export, right ? JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel