Compare commits

...

3 Commits

Author SHA1 Message Date
Scott Kostyshak
b9c8f2c3e2 ctests: uninvert xhtml test thanks to fix
Thanks to the fix at 18657384, this test is fixed.
2024-10-16 19:03:40 +02:00
Jean-Marc Lasgouttes
f4a3f4f29b Give a layout name to math HulInset
This makes it accessible to inset-forall.
2024-10-16 15:19:07 +02:00
Juergen Spitzmueller
1865738417 Escape standalone ampersands in xhtml InsetCitation 2024-10-16 12:55:11 +02:00
4 changed files with 11 additions and 5 deletions

View File

@ -179,10 +179,6 @@ export/examples/ru/Presentations/Beamer_lyx(16|20)
# that we want "&" rather than "and" (in APA context).
# see: https://www.mail-archive.com/search?l=mid&q=ildx4xd4o7ybeqroh3blxgnxqnsqnte256utip2fbmcwi4zolz%40wsh7ez36kkhl
export/templates/Articles/American_Psychological_Association_%28APA%29,_v._7_xhtml
#
# from Jürgen: ampersands in the bibliography (as in "Hartley & Marks" here)
# need to be transferred to & in DocBook.
export/examples/es/Handouts/Tufte_Handout_xhtml
# ==============================================================

View File

@ -663,7 +663,9 @@ docstring InsetCitation::xhtml(XMLStream & xs, OutputParams const &) const
return docstring();
// have to output this raw, because generateLabel() will include tags
xs << XMLStream::ESCAPE_NONE << generateLabel(true);
// but we need to escape standalone ampersands
xs << XMLStream::ESCAPE_NONE
<< subst(generateLabel(true), from_ascii(" & "), from_ascii(" &amp; "));
return docstring();
}

View File

@ -217,6 +217,12 @@ InsetMathHull & InsetMathHull::operator=(InsetMathHull const & other)
}
docstring InsetMathHull::layoutName() const
{
return "Formula:" + hullName(type_);
}
void InsetMathHull::setBuffer(Buffer & buffer)
{
InsetMathGrid::setBuffer(buffer);

View File

@ -47,6 +47,8 @@ public:
///
virtual ~InsetMathHull();
///
docstring layoutName() const override;
///
void setBuffer(Buffer &) override;
///
void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;