Skip to content

Commit 5a6c4a7

Browse files
committed
web: fix bug where newline_before_comment setting is not applied
1 parent 8e9acdd commit 5a6c4a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ fn app() -> Html {
131131
FormatOptions {
132132
checksums: app_store.settings.postprocess.checksums,
133133
line_numbers: app_store.settings.postprocess.line_numbers,
134+
newline_before_comment: app_store
135+
.settings
136+
.postprocess
137+
.newline_before_comment,
134138
..Default::default()
135139
},
136140
&mut acc,
@@ -148,6 +152,10 @@ fn app() -> Html {
148152
FormatOptions {
149153
checksums: app_store.settings.postprocess.checksums,
150154
line_numbers: app_store.settings.postprocess.line_numbers,
155+
newline_before_comment: app_store
156+
.settings
157+
.postprocess
158+
.newline_before_comment,
151159
..Default::default()
152160
},
153161
&mut zip,

0 commit comments

Comments
 (0)