Complex document compiles with 2.3.x but not with master

Jürgen Spitzmüller spitz at lyx.org
Sat Sep 19 06:43:36 UTC 2020


Am Freitag, den 18.09.2020, 18:43 +0100 schrieb José Abílio Matos:
> Actually I am confused why the code is needed at all.
> 
> What are the cases where we need to add a leftmost zero to a number? 

To translate LaTeX shorthand floats .7 to 0.7. In its own length
widgets, LyX only understands the latter IIRC.

> I could understand if it was the first char in the string, and so
> position 0 and not 1.
> 
> On the other hand python understand that if a float number starts
> with a dot then it is the same as if the 0 was there:
> 
> In [1]:
> .4*2                                                                 
>                                                                      
>                                                                      
>                      
> Out[1]: 0.8

I see. But we deal with strings here.

Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200919/17691ad3/attachment.asc>


More information about the lyx-devel mailing list