#include "FuncStatus.h"
#include "InsetIterator.h"
#include "LyXFunc.h"
+#include "output_xhtml.h"
#include "ParIterator.h"
#include "sgml.h"
#include "Text.h"
InsetCommandParams p(REF_CODE, "ref");
p["reference"] = getParam("name");
cap::clearSelection();
- cap::copyInset(cur, new InsetRef(*cur.buffer(), p), getParam("name"));
+ cap::copyInset(cur, new InsetRef(buffer(), p), getParam("name"));
break;
}
}
+docstring InsetLabel::xhtml(odocstream & os, OutputParams const &) const
+{
+ os << "<a name=\"" << html::htmlize(getParam("name")) << "\"></a>";
+ return docstring();
+}
+
} // namespace lyx