generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 107
Labels
bugSomething isn't working. This is as high priority issue.Something isn't working. This is as high priority issue.
Description
Bug Category
Other
Describe the bug
Given a policy
permit (principal, action, resource)
when { "
a
" };
The formatter drops the new-line character and rewrites the policy to
permit (principal, action, resource)
when { "
a
" };
This is probably because the RcDoc::as_string function cannot be used with strings containing line breaks. Possibly related to #265.
Reproduction steps
[jkastner@dev-dsk-jkastner-1a-3309db3b cedar]$ cargo run format <<<'
permit (principal, action, resource)
when { "
a"};'
permit (principal, action, resource)
when { "
a" };Metadata
Metadata
Assignees
Labels
bugSomething isn't working. This is as high priority issue.Something isn't working. This is as high priority issue.