New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't collapse cite when any of the cites contains optional arguments #1732
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point. Completely didn't think of that. Will fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lorem Ipsum.\footcite[p. 1]{Book1}~\cite{Book2}~\cite{chi}\cite[a]{bambi}.
Non breaking spaces break the inspection. Other than that, good work :)
src/nl/hannahsten/texifyidea/inspections/latex/LatexCollapseCiteInspection.kt
Show resolved
Hide resolved
src/nl/hannahsten/texifyidea/inspections/latex/LatexCollapseCiteInspection.kt
Outdated
Show resolved
Hide resolved
src/nl/hannahsten/texifyidea/inspections/latex/LatexCollapseCiteInspection.kt
Outdated
Show resolved
Hide resolved
src/nl/hannahsten/texifyidea/inspections/latex/LatexCollapseCiteInspection.kt
Show resolved
Hide resolved
Thanks! I guess it didn't work with non-breaking spaces before? (I didn't change anything about finding the cites.) I agree that should work as well, will add. |
Fix #1730
Summary of additions and changes
How to test this pull request
See tests.