aboutsummaryrefslogtreecommitdiff
path: root/tools/format.nom
diff options
context:
space:
mode:
Diffstat (limited to 'tools/format.nom')
-rwxr-xr-xtools/format.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/format.nom b/tools/format.nom
index 76c4981..7d9d1d4 100755
--- a/tools/format.nom
+++ b/tools/format.nom
@@ -19,7 +19,7 @@ for $filename in $filenames:
$file = (read file $filename)
unless $file:
barf "File does not exist: \$filename"
- $leading_indent = ($file, matching "[\n]*([ ]*)")
+ $leading_indent = ($file, matching "\n*([ ]*)")
$code = (NomsuCode from ($Source $filename 1 (size of $file)) $file)
try:
$tree = ($code parsed)