-#\DeclareLyXModule{Adds an endnote command, in addition to footnotes. You will need to add \theendnotes in ERT where you want the endnotes to appear.}{Endnote}
+#\DeclareLyXModule[endnotes.sty]{Endnote}
+#DescriptionBegin
+#Adds an endnote command, in addition to footnotes. You will need to add
+#\theendnotes in ERT where you want the endnotes to appear.
+#DescriptionEnd
Format 6