>>>>> "pol" == pol <[EMAIL PROTECTED]> writes:
pol> What is mostly annoying is that, adding a new line in the middle
pol> of an indented text, the whole text below gets automatically
pol> indented down. See the enclosed test lyx file to check out.
As I said before, this is bug 2245. The following patch against 1.4.x
helps a lot IMO.
- it contains Martin's patch for 1,5 for the case of using Return in
an environment.
- when we are not in an environment and depth>1, the new paragraph has
the layout and the depth of the outer hook (that is, the paragraph
in which we are nested).
Please test. I did some testing, but this part of code is definitely
not easy to follow (and could use a good rewrite).
JMarc
Index: src/paragraph_funcs.C
===================================================================
--- src/paragraph_funcs.C (revision 14975)
+++ src/paragraph_funcs.C (working copy)
@@ -120,6 +120,13 @@ void breakParagraph(BufferParams const &
if (flag) {
tmp->layout(par.layout());
tmp->setLabelWidthString(par.params().labelWidthString());
+ tmp->params().depth(par.params().depth());
+ } else if (par.params().depth() > 0) {
+ Paragraph const & hook = pars[outerHook(par_offset, pars)];
+ tmp->layout(hook.layout());
+ // not sure the line below is useful
+ tmp->setLabelWidthString(par.params().labelWidthString());
+ tmp->params().depth(hook.params().depth());
}
bool const isempty = (par.allowEmpty() && par.empty());