> Is the attached OK ?

Currently we output this:

\textcolor{cyan}{one }\textcolor{cyan}{\emph{two}}\textcolor{cyan}{
three}

your patch changes it to:

\textcolor{cyan}{one }\textcolor{cyan}{\emph{two}}\textcolor{cyan}{{}
three}

I apologize for my confusing comment 2 in http://www.lyx.org/trac/ticket/4473 
where I proposed this.
I wrote in http://www.lyx.org/trac/ticket/4491 that the clean solution is:

\textcolor{cyan}{one \emph{two} three}

The solution of your patch with the brace pair also works but is a hack compared to the clean solution. The clean solution would also fix currently ugly and hackish output like this:

\emph{one }\textbf{\emph{two}}\emph{ three}

while the clean code is simply

\emph{one \textbf{two} three}

The general problem we have is that we interrupt command arguments when a new 
command is started.

regards Uwe

Reply via email to