]> git.lyx.org Git - features.git/commitdiff
* InsetIndex.cpp: add some FIXMEs.
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 31 Aug 2009 12:32:39 +0000 (12:32 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 31 Aug 2009 12:32:39 +0000 (12:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31250 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetIndex.cpp

index cb3a276741d1d0ee1a043ce5bd7075a316b8c15a..6b60824302ec4e5476beb0e5a520d593b0623e9e 100644 (file)
@@ -88,6 +88,9 @@ int InsetIndex::latex(odocstream & os,
                // ...and erase that stuff from latexstr
                latexstr = latexstr.erase(pos);
                // ...and similarly from plainstr
+               // FIXME This utterly fails if the "|" is in ERT
+               // which is necessary with font encodings other
+               // than T1.
                size_t ppos = plainstr.find(from_ascii("|"));
                if (ppos < plainstr.size())
                        plainstr.erase(ppos);
@@ -97,6 +100,7 @@ int InsetIndex::latex(odocstream & os,
 
        // Separate the entires and subentries, i.e., split on "!"
        // FIXME This would do the wrong thing with escaped ! characters
+       // and with "!" in ERT.
        std::vector<docstring> const levels =
                getVectorFromString(latexstr, from_ascii("!"), true);
        std::vector<docstring> const levels_plain =