You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
PyCharm 2023.2.5 (build PY-232.10227.11)
Operating System
Windows 11 (23H2)
TeXiFy IDEA version
0.9.2
What I did (steps to reproduce)
When I reformat a LaTeX file where a table with URLs that contain ampersands, then spaces get added to the sides of the ampersands. This effect occurs for every subsequent reformatting, which can lead to a lot of extra spaces.
Minimal example to reproduce the problem
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{tabular}{ll}
a & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB&t=18} \\
b & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB&t=18}
\end{tabular}
\end{document}
Expected behavior
The table should be aligned correctly, in the above case, nothing should change:
\begin{tabular}{ll}
a & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB&t=18} \\
b & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB&t=18}
\end{tabular}
Actual behavior
Spaces are added to the sides of the ampersands:
\begin{tabular}{ll}
a & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB & t=18} \\
b & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB & t=18}
\end{tabular}
Oddly, if the ampersands are escaped, then spaces are only added to the right:
\begin{tabular}{ll}
a & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB\& t=18} \\
b & \url{https://youtu.be/dQw4w9WgXcQ?si=SHq6ADlwRNZ1hwOB\& t=18}
\end{tabular}
The text was updated successfully, but these errors were encountered:
Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
PyCharm 2023.2.5 (build PY-232.10227.11)
Operating System
Windows 11 (23H2)
TeXiFy IDEA version
0.9.2
What I did (steps to reproduce)
When I reformat a LaTeX file where a table with URLs that contain ampersands, then spaces get added to the sides of the ampersands. This effect occurs for every subsequent reformatting, which can lead to a lot of extra spaces.
Minimal example to reproduce the problem
Expected behavior
The table should be aligned correctly, in the above case, nothing should change:
Actual behavior
Spaces are added to the sides of the ampersands:
Oddly, if the ampersands are escaped, then spaces are only added to the right:
The text was updated successfully, but these errors were encountered: