mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
Simple fix to docbook layout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1482 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a996b1bd2b
commit
b52c0c61f6
@ -7,3 +7,7 @@
|
|||||||
Input db_stdclass.inc
|
Input db_stdclass.inc
|
||||||
|
|
||||||
MaxCounter Counter_Section
|
MaxCounter Counter_Section
|
||||||
|
|
||||||
|
# Exclude higher, or equal, sections:
|
||||||
|
NoStyle Part
|
||||||
|
NoStyle Chapter
|
||||||
|
@ -3040,7 +3040,10 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sgmlOpenTag(ofs, depth + command_depth, command_name);
|
sgmlOpenTag(ofs, depth + command_depth, command_name);
|
||||||
|
if (c_params.empty())
|
||||||
item_name = "title";
|
item_name = "title";
|
||||||
|
else
|
||||||
|
item_name = c_params;
|
||||||
sgmlOpenTag(ofs, depth + 1 + command_depth, item_name);
|
sgmlOpenTag(ofs, depth + 1 + command_depth, item_name);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -3123,7 +3126,10 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
|
|||||||
// write closing SGML tags
|
// write closing SGML tags
|
||||||
switch (style.latextype) {
|
switch (style.latextype) {
|
||||||
case LATEX_COMMAND:
|
case LATEX_COMMAND:
|
||||||
|
if (c_params.empty())
|
||||||
end_tag = "title";
|
end_tag = "title";
|
||||||
|
else
|
||||||
|
end_tag = c_params;
|
||||||
sgmlCloseTag(ofs, depth + command_depth, end_tag);
|
sgmlCloseTag(ofs, depth + command_depth, end_tag);
|
||||||
break;
|
break;
|
||||||
case LATEX_ENVIRONMENT:
|
case LATEX_ENVIRONMENT:
|
||||||
|
Loading…
Reference in New Issue
Block a user