]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.cpp
Make the fake sequence for braces highly unlikely (addressing #6478).
[lyx.git] / src / Layout.cpp
index f1d76c6228298a936bc4cc026096680206433465..ae045f130fd3519956085b0c7d9f7e27bb96d81d 100644 (file)
@@ -103,6 +103,7 @@ enum LayoutTags {
        LT_HTMLSTYLE,
        LT_HTMLFORCECSS,
        LT_INPREAMBLE,
+       LT_HTMLTITLE,
        LT_INTITLE // keep this last!
 };
 
@@ -144,6 +145,7 @@ Layout::Layout()
        commanddepth = 0;
        htmllabelfirst_ = false;
        htmlforcecss_ = false;
+       htmltitle_ = false;
 }
 
 
@@ -176,9 +178,10 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                { "htmlpremable",   LT_HTMLPREAMBLE },
                { "htmlstyle",      LT_HTMLSTYLE },
                { "htmltag",        LT_HTMLTAG },
+               { "htmltitle",      LT_HTMLTITLE },
                { "innertag",       LT_INNERTAG },
-               { "intitle",        LT_INTITLE },
                { "inpreamble",     LT_INPREAMBLE },
+               { "intitle",        LT_INTITLE },
                { "itemsep",        LT_ITEMSEP },
                { "itemtag",        LT_ITEMTAG },
                { "keepempty",      LT_KEEPEMPTY },
@@ -530,7 +533,10 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                case LT_HTMLPREAMBLE:
                        htmlpreamble_ = from_utf8(lex.getLongString("EndPreamble"));
                        break;
-
+               
+               case LT_HTMLTITLE:
+                       lex >> htmltitle_;
+                       break;
                }
        }
        lex.popTable();