]> git.lyx.org Git - lyx.git/commit
Generalize the protection of brackets in citation arguments
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 22 Jan 2017 09:27:06 +0000 (10:27 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 22 Jan 2017 09:27:06 +0000 (10:27 +0100)
commitfd8b4aebb0ee6404a4532abb9934886b19edd108
tree635460778fc1a05d86f5e2188485c15dc4e7a189
parent4666cb15ec70b097e5fe53e5433d2a4553c9c660
Generalize the protection of brackets in citation arguments

Whenever an argument delimiter is used inside the argument, the argument
needs to be grouped, that is

\cites({text (text) text})

or

\cite[{text [text] text}]

This fixes the original case reported in #2751 which is independent
from the general issue that the pre- and postnote field take literal
code.
src/insets/InsetCitation.cpp