diff options
| author | John MacFarlane <[email protected]> | 2022-01-14 23:11:21 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-01-14 23:11:21 -0800 |
| commit | 0f3a615fd45a06c58ddfe7ffc15d237c717d79e6 (patch) | |
| tree | 630ebd7d46f0315ca49d843c6c0f0477b619ee08 /test/command | |
| parent | 5b7d9ef5c278eb7043d55cbce457fbe26cd90dcd (diff) | |
Include following newline in latex ControlSeq token.token-newline
This gives behavior that comes closer to LaTeX's own.
If we don't absorb the following newline, it gets
interpreted as a SoftBreak, inserting a spurious space
in some contexts.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/3983.md | 4 | ||||
| -rw-r--r-- | test/command/4007.md | 2 | ||||
| -rw-r--r-- | test/command/4134.md | 2 | ||||
| -rw-r--r-- | test/command/7434.md | 2 | ||||
| -rw-r--r-- | test/command/macros.md | 3 | ||||
| -rw-r--r-- | test/command/newif.md | 4 |
6 files changed, 7 insertions, 10 deletions
diff --git a/test/command/3983.md b/test/command/3983.md index 82c1deef0..3d93a436b 100644 --- a/test/command/3983.md +++ b/test/command/3983.md @@ -5,7 +5,7 @@ \graphicspath\expandafter{\expandafter{\filename@area}}% \makeatother ^D -[ RawBlock (Format "latex") "\\makeatletter" +[ RawBlock (Format "latex") "\\makeatletter\n" , RawBlock (Format "latex") "\\makeatother" ] ``` @@ -17,7 +17,7 @@ \DeclareRobustCommand{\urlfootnote}{\hyper@normalise\urlfootnote@} \makeatother ^D -[ RawBlock (Format "latex") "\\makeatletter" +[ RawBlock (Format "latex") "\\makeatletter\n " , RawBlock (Format "latex") "\\makeatother" ] ``` diff --git a/test/command/4007.md b/test/command/4007.md index 974a88ab9..2529349ff 100644 --- a/test/command/4007.md +++ b/test/command/4007.md @@ -3,7 +3,7 @@ \newcommand\arrow\to $a\arrow b$ ^D -[ Para [ Math InlineMath "a\\to b" ] ] +[ Para [ Math InlineMath "a\\to\nb" ] ] ``` ``` diff --git a/test/command/4134.md b/test/command/4134.md index 195d85129..4b170e6f1 100644 --- a/test/command/4134.md +++ b/test/command/4134.md @@ -20,5 +20,5 @@ Hello.\ World. ^D -[ Para [ Str "Hello.\160" ] , Para [ Str "World." ] ] +[ Para [ Str "Hello.\160World." ] ] ``` diff --git a/test/command/7434.md b/test/command/7434.md index e4f2743a1..a31d3b299 100644 --- a/test/command/7434.md +++ b/test/command/7434.md @@ -11,7 +11,7 @@ ^D [ RawBlock (Format "tex") - "\\begin{proof}\n\\newcommand{\\x}{\\left.\\right.}\n\\left.\\right.\n\\end{proof}" + "\\begin{proof}\n\\newcommand{\\x}{\\left.\\right.}\n\\left.\\right.\\end{proof}" , Para [ Str "1234567890abcdefghi" ] , Para [ Link diff --git a/test/command/macros.md b/test/command/macros.md index 9f7a0f9d3..7e5f3eca7 100644 --- a/test/command/macros.md +++ b/test/command/macros.md @@ -79,8 +79,7 @@ x &= y\\\end{aligned}\] \newcommand{\my}{\phi} \begin{equation} -\phi+\phi -\end{equation} +\phi+\phi\end{equation} ``` ``` diff --git a/test/command/newif.md b/test/command/newif.md index f444f14c9..a68357955 100644 --- a/test/command/newif.md +++ b/test/command/newif.md @@ -43,9 +43,7 @@ should not print should print \fi ^D -should print - -should print +should print should print should print |
