Skip to content

Commit

Permalink
web: fix bug where newline_before_comment setting is not applied
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed Aug 11, 2024
1 parent 8e9acdd commit 5a6c4a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ fn app() -> Html {
FormatOptions {
checksums: app_store.settings.postprocess.checksums,
line_numbers: app_store.settings.postprocess.line_numbers,
newline_before_comment: app_store
.settings
.postprocess
.newline_before_comment,
..Default::default()
},
&mut acc,
Expand All @@ -148,6 +152,10 @@ fn app() -> Html {
FormatOptions {
checksums: app_store.settings.postprocess.checksums,
line_numbers: app_store.settings.postprocess.line_numbers,
newline_before_comment: app_store
.settings
.postprocess
.newline_before_comment,
..Default::default()
},
&mut zip,
Expand Down

0 comments on commit 5a6c4a7

Please sign in to comment.