Am 23.08.2011 23:18, schrieb Jean-Marc Lasgouttes:
I think lyxcode is fundamentally flawed, but nobody dares fixing it :)
The code is correct - it uses LaTeX#s list environment which is designed for this purpose.
Could we just use alltt or even verbatim instead?
VFerbatim would not allow any formatting while list does. What is alltt?
Another solution would be to use \obeyspace there and just remve the freespace nonsense.
Free spacing is OK here and therefore also provided by LaTeX's list environment. The only issue is that we are currentl using in any case non-breakable spaces and that is what my patch fixes.
This is more work, but a better result. For this we could have to create a new value freespacing=2 that means "allow mutiple spaces, but output them as normal spaces.
But the aim of lyxlist is to provide an environment where multiple spaces are output as such and not only as one single space.
regards Uwe