Reindent.
This commit is contained in:
parent
4183ec85ce
commit
104802b3ae
|
@ -8,22 +8,23 @@
|
||||||
|
|
||||||
(define (get-number input-text . maybe-title)
|
(define (get-number input-text . maybe-title)
|
||||||
(let* ((title (if (pair? maybe-title) (car maybe-title) #f))
|
(let* ((title (if (pair? maybe-title) (car maybe-title) #f))
|
||||||
(result (send-html/suspend
|
(result
|
||||||
(lambda (new-url)
|
(send-html/suspend
|
||||||
`(html ,(if title
|
(lambda (new-url)
|
||||||
`(title ,title) '())
|
`(html ,(if title
|
||||||
(body
|
`(title ,title) '())
|
||||||
,(if title `(h2 ,title) '())
|
(body
|
||||||
(p
|
,(if title `(h2 ,title) '())
|
||||||
(form (@ (method "get")
|
(p
|
||||||
(action ,new-url))
|
(form (@ (method "get")
|
||||||
,input-text " "
|
(action ,new-url))
|
||||||
(input (@ (type "text")
|
,input-text " "
|
||||||
(name "number"))
|
(input (@ (type "text")
|
||||||
(input (@ (type "submit"))))))
|
(name "number"))
|
||||||
(hr)
|
(input (@ (type "submit"))))))
|
||||||
(p (URL "/" "Return to main menu") (br)
|
(hr)
|
||||||
(URL "add.scm" "Start new calculation."))))))))
|
(p (URL "/" "Return to main menu") (br)
|
||||||
|
(URL "add.scm" "Start new calculation."))))))))
|
||||||
(let* ((bindings (form-query
|
(let* ((bindings (form-query
|
||||||
(http-url-search (request-url result))))
|
(http-url-search (request-url result))))
|
||||||
(number (string->number
|
(number (string->number
|
||||||
|
|
Loading…
Reference in New Issue