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);