Re: Incorrect "Listpreamble" export to old version

2022-05-26 Thread Daniel

On 2022-05-26 09:37, Jürgen Spitzmüller wrote:

Am Mittwoch, dem 25.05.2022 um 20:35 +0200 schrieb Daniel:

The new "Listpreamble" inset for numbered lists does not export
correctly to older versions of LyX. In LyX 2.4.0dev, the
listpreamble's
content is inserted before the first item. Instead, when exporting to
2.3.x, the content of the inset is just added at it's place in
brackets
"{}". This leads to a different and incorrect output in 2.3.x.


It's not possible otherwise, unless we'd transfer the whole list to
ERT. So yes, it's intentional.


Thanks. That helps with my own reversion attempts.

(Shouldn't there be some kind of mechanism to warn the user about 
possible losses? https://www.lyx.org/trac/ticket/12539)


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Incorrect "Listpreamble" export to old version

2022-05-26 Thread Jürgen Spitzmüller
Am Mittwoch, dem 25.05.2022 um 20:35 +0200 schrieb Daniel:
> The new "Listpreamble" inset for numbered lists does not export 
> correctly to older versions of LyX. In LyX 2.4.0dev, the
> listpreamble's 
> content is inserted before the first item. Instead, when exporting to
> 2.3.x, the content of the inset is just added at it's place in
> brackets 
> "{}". This leads to a different and incorrect output in 2.3.x.

It's not possible otherwise, unless we'd transfer the whole list to
ERT. So yes, it's intentional.

-- 
Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Incorrect "Listpreamble" export to old version

2022-05-25 Thread Daniel
The new "Listpreamble" inset for numbered lists does not export 
correctly to older versions of LyX. In LyX 2.4.0dev, the listpreamble's 
content is inserted before the first item. Instead, when exporting to 
2.3.x, the content of the inset is just added at it's place in brackets 
"{}". This leads to a different and incorrect output in 2.3.x.


I am wondering whether this is a mistake or the way it should be. I came 
across this while trying to create a lyx2lyx function for a front-, 
main- and backmatter function (https://www.lyx.org/trac/ticket/12424).


I struggle to get the correct export to LyX 2.3.x but maybe that is 
acceptable given the "listpreamble" does the same.


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel