wisp
 
(Arne Babenhauserheide)
2014-08-18: FIX: when reducing indentation, line-continues? was inversed for

FIX: when reducing indentation, line-continues? was inversed for prepending parens and it always appended one paren too much.

diff --git a/wisp-scheme.w b/wisp-scheme.w
--- a/wisp-scheme.w
+++ b/wisp-scheme.w
@@ -325,12 +325,14 @@ define : wisp-scheme-indentation-to-pare
                          level-difference : indent-level-difference indentation-levels : line-indent next-line
                          parens-to-prepend 
                            if : line-continues? current-line
+                                . 0
                                 . 1
-                                . 0
                          parens-to-append 
                            if : line-continues? current-line
+                                ; FIXME: This looks wrong, but it has
+                                ; the right result.
+                                1- level-difference
                                 . level-difference
-                                1+ level-difference
                        loop
                          append processed 
                            list