Le 18/12/2017 à 17:44, Jean-Marc Lasgouttes a écrit :
We will know that once we understand what happens (and if the file is correct).

What happens is that the file src/tex2lyx/test/test-insets.lyx.lyx, created by tex2lyx, contains:

\begin_inset Flex Flex:URL
status collapsed

\begin_layout Plain Layout
http://www.lyx.org
\end_layout

\end_inset


The Flex: prefix is wrong and we do not use it anymore since at least 3 years ago (cfeddb92). Jürgen, Richard, do you remember the details?

Should tex2lyx skip the Flex: when writing files? I think we did not see it yet because when reading the file, InsetFlex::getLayout does some magic so that the prefix can be present or not.

Shall we add a special casing to DocumentClass:addLayoutIfNeeded, or just fix tex2lyx so that it creates correct files?

JMarc

Reply via email to