]> git.lyx.org Git - features.git/commit
Fix tex2lyx script output
authorGeorg Baum <baum@lyx.org>
Wed, 11 Mar 2015 21:20:44 +0000 (22:20 +0100)
committerGeorg Baum <baum@lyx.org>
Wed, 11 Mar 2015 21:20:44 +0000 (22:20 +0100)
commitd752334ec499f6353c867b3b37655f7b1f3d62ee
tree8a5a800c88b60b3ec0744542da5606131af00127
parent361967e613c47b67ea08b0c13a647e7edca70c2d
Fix tex2lyx script output

tex2lyx did not use the InsetLayout for the script insets, so it did not know
that it had to use Plain Layout. However, there is still a possible pitfall:
InsetScript uses a hard coded plain layout for the InsetText constructor, so
if anybody would remove ForcePlain 1 and MultiPar false from the InsetLayout
then LyX would still write script insets with plain layout, but tex2lyx would
output standard layout again.
src/tex2lyx/test/box-color-size-space-align.lyx.lyx
src/tex2lyx/test/test-insets.lyx.lyx
src/tex2lyx/text.cpp