On 20.10.2017 09:46, racoon wrote:
Open and typeset the attached file with a deleted URL and active show
changes. It shows both the actual and expected result.
Notes: While the current algorithm seems fine for some insets, like
footnotes, it falters at other insets, like URL, which do not interpret
its content as LaTeX code.
Okay, it seems pretty impossible to solve this. The problem is that when
only plain text is allowed in an inset, like URL, changes can be marked
as on whole inset but not different changes within it.
However, here is what one might reasonably do:
if the content is only plain, i.e. forceplain is true, to not end the
\lyxadded and \lyxdeleted before it but just wrap it around the inset.
and additionally, but I guess this is not such a simple change,
have an inset setting that disables change tracking within it, so that
there will be no \lyxadded and \lyxdeleted within the inset.
Daniel