]> git.lyx.org Git - features.git/commitdiff
Simple fix to docbook layout.
authorJosé Matox <jamatos@lyx.org>
Sun, 11 Feb 2001 21:25:34 +0000 (21:25 +0000)
committerJosé Matox <jamatos@lyx.org>
Sun, 11 Feb 2001 21:25:34 +0000 (21:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1482 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/docbook.layout
src/buffer.C

index 32c2f673a8cae9acacb35c4e4406de04a31f01ee..ae6ab92878c363cccbe77cec63f6702128ff2c60 100644 (file)
@@ -7,3 +7,7 @@
 Input db_stdclass.inc
 
 MaxCounter             Counter_Section
+
+# Exclude higher, or equal, sections:
+NoStyle Part
+NoStyle Chapter
index c548ce5396fff193f2f1669c663f14ee4b5f619f..34574dd67467cf79e522b9d94c24e3995411ebfd 100644 (file)
@@ -3040,7 +3040,10 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
                        }
 
                        sgmlOpenTag(ofs, depth + command_depth, command_name);
-                       item_name = "title";
+                       if (c_params.empty())
+                               item_name = "title";
+                       else
+                               item_name = c_params;
                        sgmlOpenTag(ofs, depth + 1 + command_depth, item_name);
                        break;
 
@@ -3123,7 +3126,10 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
                // write closing SGML tags
                switch (style.latextype) {
                case LATEX_COMMAND:
-                       end_tag = "title";
+                       if (c_params.empty())
+                               end_tag = "title";
+                       else
+                               end_tag = c_params;
                        sgmlCloseTag(ofs, depth + command_depth, end_tag);
                        break;
                case LATEX_ENVIRONMENT: