mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 15:08:39 +00:00
Reset to leftmost spacing mode after newline (#1841)
* Reset to leftmost spacing mode after newline Newlines have class "mspace newline" but shouldn't be fully ignored: they should reset the spacing mode back to "leftmost" so as to not accidentally create trailing spaces at end of lines. Fix #1828. * Update snapshots * Add root detection, and treat newline specially only then Co-authored-by: ylemkimon <mail@ylem.kim>
This commit is contained in:
@@ -1228,10 +1228,6 @@ exports[`Newlines via \\\\ and \\newline \\\\ causes newline, even after mrel an
|
||||
<span class="mrel">
|
||||
=
|
||||
</span>
|
||||
<span class="mspace"
|
||||
style="margin-right:0.2777777777777778em;"
|
||||
>
|
||||
</span>
|
||||
</span>
|
||||
<span class="mspace newline">
|
||||
</span>
|
||||
@@ -1250,10 +1246,6 @@ exports[`Newlines via \\\\ and \\newline \\\\ causes newline, even after mrel an
|
||||
<span class="mbin">
|
||||
+
|
||||
</span>
|
||||
<span class="mspace"
|
||||
style="margin-right:0.2222222222222222em;"
|
||||
>
|
||||
</span>
|
||||
</span>
|
||||
<span class="mspace newline">
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user