mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Fix start_of_appendix output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9734 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7677c92723
commit
33f008d7a1
@ -1,3 +1,7 @@
|
|||||||
|
2005-03-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||||
|
|
||||||
|
* text.C (parse_text): Fix \start_of_appendix output
|
||||||
|
|
||||||
2005-03-11 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
2005-03-11 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||||
|
|
||||||
* table.C (parse_table): handle nested tables
|
* table.C (parse_table): handle nested tables
|
||||||
|
@ -962,6 +962,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
t.cat() == catOther ||
|
t.cat() == catOther ||
|
||||||
t.cat() == catAlign ||
|
t.cat() == catAlign ||
|
||||||
t.cat() == catParameter) {
|
t.cat() == catParameter) {
|
||||||
|
// This translates "&" to "\\&" which may be wrong...
|
||||||
context.check_layout(os);
|
context.check_layout(os);
|
||||||
os << t.character();
|
os << t.character();
|
||||||
}
|
}
|
||||||
@ -1147,8 +1148,20 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (t.cs() == "appendix") {
|
else if (t.cs() == "appendix") {
|
||||||
p.skip_spaces();
|
|
||||||
context.add_extra_stuff("\\start_of_appendix\n");
|
context.add_extra_stuff("\\start_of_appendix\n");
|
||||||
|
// We need to start a new paragraph. Otherwise the
|
||||||
|
// appendix in 'bla\appendix\chapter{' would start
|
||||||
|
// too late.
|
||||||
|
context.new_paragraph(os);
|
||||||
|
// We need to make sure that the paragraph is
|
||||||
|
// generated even if it is empty. Otherwise the
|
||||||
|
// appendix in '\par\appendix\par\chapter{' would
|
||||||
|
// start too late.
|
||||||
|
context.check_layout(os);
|
||||||
|
// Both measures above may generate an additional
|
||||||
|
// empty paragraph, but that does not hurt, because
|
||||||
|
// whitespace does not matter here.
|
||||||
|
eat_whitespace(p, os, context, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Must attempt to parse "Section*" before "Section".
|
// Must attempt to parse "Section*" before "Section".
|
||||||
|
Loading…
Reference in New Issue
Block a user