-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly remove indentation one line even if escaped line brake
Close #141. ``` [fmtTrim| foo\ bar |] ``` should be `foobar` instead of `foo bar`. This is fixed by doing the whitespace trimming on the input string of the quasiquotes (here `\n foo\ bar`) instead of the output string. However it breaks two previous features: - When an interpolation block had whitespace, it should now be indented at least as much as the string, otherwise the interpolation block indentation will be used as reference. - Escaping the first line is now ignored. But actually, escaping the first line behaves exactly as not escaping the first line, so it breaks nothing.
- Loading branch information
Showing
3 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters