On 10/19/2015 03:46 PM, Georg Baum wrote:
Jean-Marc Lasgouttes wrote:

Le 18/10/15 17:01, Georg Baum a écrit :
What is wrong with the new alignment handling? It is IMHO confusing and
not needed, we have paragraph alignment. Look at the attached example: I
set the box alignment to centered, and the paragraph alignment to right.
This will produce \centered \begin{flushright} which does not really make
sense. I think we should try to be consistent and not offer different
ways to do the same thing unless there is a very clear advantage (which I
do not see in this case). Has this change been discussed on the list? If
yes, then I missed it.
I'd like to hear about reasons for this feature, but s you describe it,
I think it should be removed.
I found another reason for removal: The display in LyX does only consider
the paragraph alignment, so if you set that to left (which means that the
paragarph does not output any alignment command), and set it so something
else than left in the box, the display in LyX will be wrong. Fixing this
would probably result in ugly, hard to maintain code.

I do therefore vote for removing the new aligment handling again. I have
no strong optinion whether we should prefer option 2) or 3). Basically we
need to decide which is more important: Old documents imported into 2.2
during the last 5 months, or new documents created during the last 5
months? I slightly tend towards 2), also because it is less work.
How much less work is it?
2) can be implemented by applying the attached patch. 3) would need the
attached patch + the one from the last mail + lyx2lyx code to convert the
alignment options to ERT (I think anything else than ERT would be far too
much work). If I would do it, it would take me probably a few hours (but
honestly I currently have zero motivation for doing it, since the next new
feature that needs to be cleaned up was committed).

What was this code supposed to do?

I'm happy with option (2), if we do remove this code. People who use 2.2.dev for actual work are taking this kind of risk, and it's not that terrible.

Richard

Reply via email to