diff --git a/gotta-go-fast.cabal b/gotta-go-fast.cabal
--- a/gotta-go-fast.cabal
+++ b/gotta-go-fast.cabal
@@ -1,5 +1,5 @@
 name:                gotta-go-fast
-version:             0.1.3.0
+version:             0.1.3.1
 synopsis:            A command line utility for practicing typing
 description:
   A command line utility for practicing typing and measuring your WPM and accuracy. See the project <https://github.com/hot-leaf-juice/gotta-go-fast/blob/master/README.md README> for details.
diff --git a/src/FormatCode.hs b/src/FormatCode.hs
--- a/src/FormatCode.hs
+++ b/src/FormatCode.hs
@@ -43,5 +43,6 @@
       | otherwise = (acc ++ l ++ "\n", getIndent l ++ w, " ", "")
     greedy (acc, l, s, w) c
       | length (getIndent l ++ w) < n = (acc, l, s, w ++ [c])
+      | l == "" = (acc ++ getIndent l ++ w ++ "\n", getIndent l, "", [c])
       | otherwise =
         (acc ++ l ++ "\n" ++ getIndent l ++ w ++ "\n", getIndent l, "", [c])
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -35,7 +35,7 @@
     help "The ISO colour code for errors (default: 1)"
   , files = def &= args &= typ "FILES"
   }
-  &= summary "Gotta Go Fast 0.1.3.0"
+  &= summary "Gotta Go Fast 0.1.3.1"
   &= help "Practice typing and measure your WPM and accuracy"
   &= program "gotta-go-fast"
 
