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
Currently, when using code.remove(node), some whitespace (specifically new lines) is left behind, which can lead to display errors on the page in addition to extra whitespace on the source for editors to deal with.
Currently, when using
code.remove(node)
, some whitespace (specifically new lines) is left behind, which can lead to display errors on the page in addition to extra whitespace on the source for editors to deal with.Related: #268, #55, #265, #266
I think how it should behave (and how I've implemented it in my own tools with a workaround, see #268) is:
In the case of:
aka,
\n\n{{MyTemplate}}\n\n
, after MyTemplate is removed, only\n\n
should be left behind;in the case of:
aka,
\n{{MyTemplate}}\n
, after MyTemplate is removed, only one\n
should be left behind;finally, at the beginning of a document,
The
\n
should be removed;and otherwise no whitespace is stripped.
The text was updated successfully, but these errors were encountered: