]> git.lyx.org Git - features.git/blobdiff - src/Layout.cpp
Support FreeSpacing in InsetArgument
[features.git] / src / Layout.cpp
index be31ccb5a1ad8753143721a081ba53d590171e64..fa6b58cc118c143fe06d8e4ea509d7ae921a49f6 100644 (file)
@@ -1022,6 +1022,7 @@ void Layout::readArgument(Lexer & lex)
        arg.labelfont = inherit_font;
        arg.is_toc_caption = false;
        arg.passthru = PT_INHERITED;
+       arg.free_spacing = false;
        string id;
        lex >> id;
        bool const itemarg = prefixIs(id, "item:");
@@ -1098,6 +1099,9 @@ void Layout::readArgument(Lexer & lex)
                } else if (tok == "istoccaption") {
                        lex.next();
                        arg.is_toc_caption = lex.getBool();
+               } else if (tok == "freespacing") {
+                       lex.next();
+                       arg.free_spacing = lex.getBool();
                } else {
                        lex.printError("Unknown tag");
                        error = true;