Skip to content

Removes redundant spaces in single tokens with multiline separators #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

goto1134
Copy link
Contributor

@goto1134 goto1134 commented Apr 1, 2024

Now cases when a single keyword is split by multiple multiline separators are supported.

work\
 spa\
 ce {
}

Also fixes redundant spaces inside quoted strings. The following code was parsed as "Soft ware System" before.

"Soft\
   ware \
   Sys\
   tem"

BREAKING CHANGE!
The following code produced valid workspace before, because whitespaces in the second line were preserved. Now the first three lines will produce a single token workspace{.

workspace\
 \
  {
}

Now cases when a single keyword is split by multiple multiline separators are supported.
```structurizr
work\
 spa\
 ce {
}
```

Also fixes redundant spaces inside quoted strings. The following code was parsed as `"Soft  ware   System"` before.
```structurizr
"Soft\
   ware \
   Sys\
   tem"
```

BREAKING CHANGE!
The following code produced valid workspace before, because whitespaces in the second line were preserved. Now the first three lines will produce a single token `workspace{`.
```structurizr
workspace\
 \
  {
}
```
@goto1134 goto1134 force-pushed the fix-multiple-multiline-separators-produce-redundant-whitepsaces branch from 4f8c7a0 to 927c641 Compare March 4, 2025 12:58
@goto1134
Copy link
Contributor Author

goto1134 commented Mar 4, 2025

@simonbrowndotje , could you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant