]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetFloatList.cpp
index fba5e40dfb22222835522549c72ad6abdc3d4379..52e84e27dc8b9ac0f6b3a306fc9437336d1200bf 100644 (file)
@@ -21,7 +21,6 @@
 #include "Language.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
-#include "MetricsInfo.h"
 #include "Paragraph.h"
 #include "output_xhtml.h"
 #include "TextClass.h"
@@ -124,8 +123,14 @@ int InsetFloatList::latex(odocstream & os, OutputParams const &) const
                if (fl.needsFloatPkg())
                        os << "\\listof{" << getParam("type") << "}{"
                           << buffer().B_(fl.listName()) << "}\n"; 
-               else
-                       os << "\\" << from_ascii(fl.listCommand()) << "\n";
+               else {
+                       if (!fl.listCommand().empty())
+                               os << "\\" << from_ascii(fl.listCommand()) << "\n";
+                       else 
+                               os << "%% "
+                                  << bformat(_("LyX cannot generate a list of %1$s"), getParam("type"))
+                                  << "\n";
+               }
        } else {
                os << "%%\\listof{" << getParam("type") << "}{"
                   << bformat(_("List of %1$s"), getParam("type"))
@@ -230,7 +235,7 @@ docstring InsetFloatList::xhtml(XHTMLStream &, OutputParams const &) const {
                   << html::StartTag("a", parattr)
                   // FIXME XHTML 
                   // There ought to be a simple way to customize this.
-                  << XHTMLStream::NextRaw() << "&seArr;"
+                  << XHTMLStream::NextRaw() << "&gt;"
                   << html::EndTag("a");
                xs << html::EndTag("div");
        }