Max Nikulin writes: >> +(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. Mostly because there are a couple of places where we need the version without newline. I though that `concat' is better than `replace-regexp-in-string' or introducing two constants with/without newline. I guess, we can introduce the two constants. It might be slightly more optimal. See the updated version of the patch. >> - (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. Nope. It can't. These are ERT tests for the ox-latex output.