fix bug 1979

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10404 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-08-22 09:51:44 +00:00
parent 1368806376
commit 2970d3734f
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-08-19 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* text.C (parse_text): Output \item in list environments that are
unknown to LyX (bug 1979)
2005-07-30 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* text.C (parse_text): add forgotten \` accent.

View File

@ -1278,6 +1278,15 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
}
context.set_item();
context.check_layout(os);
if (context.has_item) {
// An item in an unknown list-like environment
// FIXME: Do this in check_layout()!
context.has_item = false;
if (optarg)
handle_ert(os, "\\item", context);
else
handle_ert(os, "\\item ", context);
}
if (optarg) {
if (context.layout->labeltype != LABEL_MANUAL) {
// lyx does not support \item[\mybullet]