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
but we can't risk adding newlines to string, as that might change the meaning of the code. Even when the original string did contain newlines at the end of each line, we'll risk ruining the indentation, as we also can't just add arbitrary spaces to the string. A result could look quite ugly:
If one just concatenates strings, it's likely for a reason
like formatting it nicely on multiple lines. Converting that
to template string will likely just mess things up.
Refs #88
When a string concatenation is used to split string to multiple lines for better readability like so:
then Lebab replaces it with an ugly template string:
...completely ruining the nice original indentation.
What should happen instead?
In theory it would be nice to replace this with something like:
but we can't risk adding newlines to string, as that might change the meaning of the code. Even when the original string did contain newlines at the end of each line, we'll risk ruining the indentation, as we also can't just add arbitrary spaces to the string. A result could look quite ugly:
I guess the only really safe way is to avoid the conversion of such multi-line concatenation altogether.
The text was updated successfully, but these errors were encountered: