]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.C
Fix comment according to Enricos explanation
[lyx.git] / src / mathed / InsetMathRef.C
index 67635a313444bc31453136936439aaf8c6467e13..eb4a14466b06181e121b59d0bbfd0a974abe757a 100644 (file)
@@ -157,20 +157,19 @@ int RefInset::plaintext(odocstream & os, OutputParams const &) const
 }
 
 
-int RefInset::docbook(Buffer const & buf, odocstream & os, OutputParams const & runparams) const
+int RefInset::docbook(Buffer const & buf, odocstream & os,
+               OutputParams const & runparams) const
 {
        if (cell(1).empty()) {
-                // FIXME UNICODE
                os << "<xref linkend=\""
-                  << from_utf8(sgml::cleanID(buf, runparams, to_utf8(asString(cell(0)))));
+                  << sgml::cleanID(buf, runparams, asString(cell(0)));
                if (runparams.flavor == OutputParams::XML)
                        os << "\"/>";
                else
                        os << "\">";
        } else {
-                // FIXME UNICODE
                os << "<link linkend=\""
-                  << from_ascii(sgml::cleanID(buf, runparams, to_utf8(asString(cell(0)))))
+                  << sgml::cleanID(buf, runparams, asString(cell(0)))
                   << "\">"
                   << asString(cell(1))
                   << "</link>";