On 07/10/2022 15:31, Ihor Radchenko wrote:

I am attaching a tentative patch to fix this.
However, I am not sure if I replaced \\ with \\\relax in the right
places.

Ihor, thank you for looking into this issue. I have not read your patch with enough attention to check that regular paragraphs, list entries and other elements are handled as well. Just a couple of notes:

+(defconst org-latex-linebreak-safe "\\\\\\relax"

Is there a reason why you did not add \n at the end? It could help to avoid a lot of `concat' calls.

-   (equal "\\begin{tabular}{l}\n\\(x\\)\\\\\n\\end{tabular}"
+   (equal "\\begin{tabular}{l}\n\\(x\\)\\\\\\relax\n\\end{tabular}"

May be left as is since the line next to \\ does not start from square brackets.


Reply via email to