> > LyX (at least 1.1.6 [GM]) still won't let you press
> > "return" on an empty Section (or whatever), BUT you can edit the text
> > to be empty, and it will stay there.
> 
> I normally write the following paragraph first, then move up and insert
> the empty paragraph (e.g. the section) and finally move down again (as
> the cursor keys work) to continue writing. Still, a fix to this unwanted
> behaviour is on top of my personal lyx wishlist.

If this is the case why on earth didn't you open a bug ?!

Anyway I've had a very quick look at this. The first part is easy, in
text.C:breakParagraph()

   1704         // if we don't keep empty text, don't allow a break
   1705         if (!layout.keepempty && par->size() < 1
   1706                 && layout.labeltype != LABEL_SENSITIVE) {
   1707                 return;
   1708         }

Now the behaviour is that when you press return on a keepempty section,
for example, the new par is inserted /above/ the section. The code is
kind of hard to follow around this area: any hints anybody ?

Guenter - open a bug on bugzilla.lyx.org :)

regards
john

p.s. I've noticed we missed the nadir point of releasing pre1 and the
bugs are growing again :(

-- 
"To the untrained eye it might seem as though Quality programs and ISO 9000 are
 not related. I was confused too until one consultant explained it to me this
 way : 'ISO 9000 is closely related to Quality because everything you do is
 Quality and ISO 9000 documents everything you do, therefore give us money.'"
        - Scott Adams

Reply via email to