aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@axiomatics.org>2016-01-28 17:58:23 -0800
committerGabriel Dos Reis <gdr@axiomatics.org>2016-01-28 17:58:23 -0800
commit7a128247a61aae34ed4cdc70c3d19b876dec1dd8 (patch)
tree65b0a6662e1b080b18ca5eb96d87bd9ce2738721
parent82b46badba16f7b40891e7d5e45bb3da828b6203 (diff)
downloadopen-axiom-7a128247a61aae34ed4cdc70c3d19b876dec1dd8.tar.gz
Fix storeBlanks\!
-rw-r--r--src/interp/spad-parser.boot5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interp/spad-parser.boot b/src/interp/spad-parser.boot
index 7e196d10..f1aeb286 100644
--- a/src/interp/spad-parser.boot
+++ b/src/interp/spad-parser.boot
@@ -92,8 +92,9 @@ indentationLocation line ==
return loc
storeBlanks!(line,n) ==
- #line >= n => nil
- stringChar(line,n) := char " "
+ for i in 0..(n-1) repeat
+ stringChar(line,i) := char " "
+ line
skipIfBlock rs ==
[n,:line] := z := preparseReadLine1 rs