commit f3ec4c24d547bebd3a70a97819f5aa145a6f4723 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Thu Sep 4 18:02:56 2025 +0200
Amend 1e76de5803 More traces removes --- src/mathed/InsetMathRef.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/mathed/InsetMathRef.cpp b/src/mathed/InsetMathRef.cpp index 381e243c0c..edf10365ea 100644 --- a/src/mathed/InsetMathRef.cpp +++ b/src/mathed/InsetMathRef.cpp @@ -197,10 +197,6 @@ docstring const InsetMathRef::screenLabel() const } str += asString(cell(0)); - //if (/* !isLatex && */ !cell(0).empty()) { - // str += "||"; - // str += asString(cell(1)); - //} return str; } @@ -245,16 +241,8 @@ void InsetMathRef::validate(LaTeXFeatures & features) const void InsetMathRef::docbook(XMLStream & xs, OutputParams const &) const { - if (cell(1).empty()) { - docstring attr = from_utf8("linkend=\"") + xml::cleanID(asString(cell(0))) + from_utf8("\""); - xs << xml::CompTag("xref", to_utf8(attr)); - } else { - // Link with linkend, as is it within the document (not outside, in which case xlink:href is better suited). - docstring attr = from_utf8("linkend=\"") + xml::cleanID(asString(cell(0))) + from_utf8("\""); - xs << xml::StartTag("link", to_utf8(attr)) - << asString(cell(1)) - << xml::EndTag("link"); - } + docstring attr = from_utf8("linkend=\"") + xml::cleanID(asString(cell(0))) + from_utf8("\""); + xs << xml::CompTag("xref", to_utf8(attr)); } -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs