diff --git a/layout.sty b/layout.sty
index c1bdd7cec1822da30b0007bf4e77cb1a3589cd45..26ca77c1524fa31e682ba4cf9af79b3b7a7c9af8 100644
--- a/layout.sty
+++ b/layout.sty
@@ -576,7 +576,13 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
 \renewcommand*{\thesection}{\arabic{section}}
 
 \titleformat{\subsection}
-{\needspace{10em}\scshape\center\Large}{\thesubsection}{1em}{}[\textcolor{\pageSideColor}{\titlerule}\vspace{1ex}\setcounter{list}{0}]
+  {\needspace{12em}\scshape\center\Large}%
+  {\thesubsection}%
+  {1em}%
+  {}%
+  [\textcolor{\pageSideColor}{\titlerule}%
+  \vspace{1ex}%
+  \setcounter{list}{0}]
 
 \titleformat{\subsubsection}[wrap]
 {\needspace{4em}\filcenter\scshape\large}