Skip to content

Commit 0777ef7

Browse files
committed
.
1 parent d9a6b7a commit 0777ef7

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

_ref/template.arc

+17-18
Original file line numberDiff line numberDiff line change
@@ -205,24 +205,23 @@
205205
(= out-file-name* "")
206206
(= out-file* (stdout))
207207
(def doit (arg)
208-
(with (cmd (car arg) args (cdr arg))
209-
(w/stdout out-file*
210-
(if (is 'newtable cmd) (apply newtable args)
211-
(is 'page cmd) (apply page args)
212-
(is 'top-page cmd) (apply top-page args)
213-
(is 'text cmd) (apply text args)
214-
(is 'op cmd) (op (cons 'op args ))
215-
(is 'mac cmd) (op (cons 'mac args))
216-
(is 'def cmd) (op (cons 'def args))
217-
(is 'var cmd) (op (cons 'var args))
218-
(is 'op-nolink cmd) (op (join '(op nolink) args))
219-
(is 'index cmd) (index)
220-
(is 'import cmd) (copy-file (args 0))
221-
(is 'template) nil
222-
(is 'file cmd) (do (= out-file-name* (args 0))
223-
(= out-file* (outfile (arg 1))))
224-
(err "Expected a template operation" arg)
225-
))))
208+
(with (cmd (car arg) args (cdr arg))
209+
(w/stdout out-file*
210+
(if (is 'newtable cmd) (apply newtable args)
211+
(is 'page cmd) (apply page args)
212+
(is 'top-page cmd) (apply top-page args)
213+
(is 'text cmd) (apply text args)
214+
(is 'op cmd) (op (cons 'op args ))
215+
(is 'mac cmd) (op (cons 'mac args))
216+
(is 'def cmd) (op (cons 'def args))
217+
(is 'var cmd) (op (cons 'var args))
218+
(is 'op-nolink cmd) (op (join '(op nolink) args))
219+
(is 'index cmd) (index)
220+
(is 'import cmd) (copy-file (args 0))
221+
(is 'template) nil
222+
(is 'file cmd) (do (= out-file-name* (args 0))
223+
(= out-file* (outfile (arg 1))))
224+
(err "Expected a template operation" arg)))))
226225

227226

228227
(def triples (xs (o n 3))

0 commit comments

Comments
 (0)