diff --git a/projects/firefox/build b/projects/firefox/build
index 6610a61e55a4e1f167b112cb7eb2dd871206dfa5..f5a6985adb2fd22a2c8e3e5e36a33f2bdfbf662d 100644
--- a/projects/firefox/build
+++ b/projects/firefox/build
@@ -159,11 +159,13 @@ export LC_ALL=C.UTF-8
 export LANG=C.UTF-8
 
 ./mach configure \
-  [% IF c("var/tor-browser") %]--with-tor-browser-version=[% c("var/torbrowser_version") %][% END %] \
   --with-distribution-id=org.torproject \
-  --enable-update-channel=[% c("var/channel") %] \
-  [% IF c("var/tor-browser") %]--with-branding=[% c("var/branding_directory") %][% END %] \
-  [% IF !c("var/rlbox") -%]--without-wasm-sandboxed-libraries[% END %] \
+  [% IF c("var/tor-browser") -%]
+        --with-tor-browser-version=[% c("var/torbrowser_version") %] \
+        --enable-update-channel=[% c("var/channel") %] \
+        --with-branding=[% c("var/branding_directory") %] \
+  [% END %] \
+  [% IF !c("var/rlbox") -%]--without-wasm-sandboxed-libraries[% END %]
 
 ./mach build --verbose
 [% IF !c("var/testbuild") %]