From: José Matox Date: Mon, 17 May 2004 16:29:24 +0000 (+0000) Subject: add label (id) to ... if present X-Git-Tag: 1.6.10~15222 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fd14ebf7e048b60d3255003a2bb5e6900a312100;p=features.git add label (id) to ... if present git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8758 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 6b7aa193b8..31506aa8f8 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,7 @@ +2004-05-17 José Matos + + * math_hullinset.C (docbook): add support for label. + 2004-04-29 Angus Leeming * math_hullinset.C: diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 7c5327650e..a39330fca1 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -1241,7 +1241,9 @@ int MathHullInset::docbook(Buffer const & buf, ostream & os, OutputParams const & runparams) const { MathMLStream ms(os); - ms << MTag("equation"); + string name="equation"; + if (! label(0).empty()) name += " id=\"" + label(0)+ "\""; + ms << MTag(name.c_str()); ms << MTag("alt"); ms << "<[CDATA["; int res = plaintext(buf, ms.os(), runparams);