LaTeX plugin searches LaTeX code in whole textview instead of per-message
The LaTeX plugin searches for LaTeX (
$$..$$) strings globally in the whole conversation textview instead of searching inside each individual message.
This works fine in most cases, but causes problem as soon as someone opens a
$$ context in a message without closing it, which will make the plugin parse all text as LaTeX that's been printed in the conversation window (including timestamps, nick names, status messages, ...) up until the next occurrence of
Fixing this bug might require introducing a new extension point in gajim's core, so the plugin's parsing function can be called on each message, passing it only the message content (without time stamp and nick name).
This bug has been introduced when LaTeX support was moved from core to a plugin, and it's still there in a recent hg version (changeset 501:48ec3a6d8e58 of the gajim-plugins repository).
Steps to reproduce
- Enable the LaTeX plugin.
- Type $$ in a message
- Continue the conversation as normal for a while, then
- Type $$ in another message
All time stamps, nick names etc. between the $$ will be parsed as LaTeX.