José Matos wrote: > OK. I have just committed a fix for 4048, it follows the idea proposed by > Georg in bug 3985. > > I have tried my best (to obfuscate the code). ;-)
Great!
> Please test.
Looks good from my first test (fixes Georg's test case, and the UserGuide
still seems to compile fine).
However, while testing with the EmbeddedObjects document, I stumbled over
another bug in revert_listings_inset (unrelated to unicode): revert the
attached example to 1.4 and see how the line
# Example listing float
in the listing has disappeared
The console complains:
Handling unknown body token: `# Example listing float'
Handling unknown body token: `\end_layout'
and the source looks like
----------------------------------------------------------------------
\begin_inset ERT
status open
\begin_layout
\backslash
begin{lstlisting}[language=Python,caption={Example Listing
float},label={lst:Example-Listing}]
\end_layout
# Example listing float
\end_layout
\begin_layout Standard
def func(param):
\end_layout
\begin_layout Standard
'this is a python function'
\end_layout
\begin_layout Standard
pass
\end_layout
\begin_layout
\backslash
end{lstlisting}
\end_layout
\end_inset
--------------------------------------------------------------------------
So there's a '\begin_layout Standard' missing above this line or the one below
is set too late. I guess this is easy to fix.
Also, after reverting EmbeddedObjects, LyX 1.4 complains about several
InsetCollapsable::read: Missing 'status'-tag!
Handling unknown body token: `open'
Jürgen
listings.lyx
Description: application/lyx
