From 5a6c4a7b0513f73bacccaa11728e85ccbe0f67ac Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Sat, 10 Aug 2024 23:43:56 -0700 Subject: [PATCH] web: fix bug where newline_before_comment setting is not applied --- web/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/src/main.rs b/web/src/main.rs index cb06d7e..09b3681 100644 --- a/web/src/main.rs +++ b/web/src/main.rs @@ -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, @@ -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,