Enrico Forestieri wrote:
> The method was once named textString() and was changed to tocString()
> at http://www.lyx.org/trac/changeset/27378 for (seemingly) unknown
> reasons (maybe due to a wrong comment in src/insets/Inset.h ?).

I remember that Jean-Marc opted for the renaming. Could it be that we need to 
split this method, if it's really used for pasting as well?

> The correct patch is to allow for any character in
>  InsetMathHull::plaintext. However, this is not the only bug in
>  InsetMathHull::plaintext, as if you copy a math inset with an eqnarray and
>  try to paste it, you only get the first cell content, and not the whole
>  equation.
> 
> The attached patch (for branch) fixes both bugs and, as a by-product,
> also bug #2342.

Is it really correct to assume utf8 in plaintext (after all, other plaintext 
methods use the runparams' encoding, so we would get a mish-mash of encodings, 
wouldn't we)? I agree that utf8 is te correct encoding for pasting and 
probably also the TOC, but then, wouldn't we have to separate this tocString 
method from plaintext?

Jürgen

Reply via email to