]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
That didn't really work. So revert to old CSS for gray notes.
[lyx.git] / src / Paragraph.cpp
index 285fc4b273bfb35c1881534118a5c0461fe4476c..0266c2e6ff9cf19a5b7875a12ebee99a7fceed7e 100644 (file)
@@ -2312,7 +2312,7 @@ pos_type Paragraph::firstWordLyXHTML(XHTMLStream & xs, OutputParams const & runp
                        char_type c = d->text_[i];
                        if (c == ' ')
                                break;
-                       xs << html::escapeChar(c);
+                       xs << c;
                }
        }
        return i;
@@ -2405,10 +2405,8 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
 
        Layout const & style = *d->layout_;
 
-       if (!fortoc 
-           && style.toclevel != Layout::NOT_IN_TOC
-           && style.toclevel <= buf.params().tocdepth) {
-               // we need to generate a magic label for this paragraph
+       if (!fortoc) {
+               // generate a magic label for this paragraph
                string const attr = "id='" + magicLabel() + "'";
                xs << CompTag("a", attr);
        }