From b0352ee51359d366a9cb8e51dbab0105c15c9cbd Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sun, 28 Oct 2018 13:20:59 -0700 Subject: [PATCH] space --- txexpr/check.rkt | 4 ++-- txexpr/scribblings/txexpr.scrbl | 16 ++++++++-------- txexpr/test/tests.rkt | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/txexpr/check.rkt b/txexpr/check.rkt index 1f62ee5..e0b5ea2 100644 --- a/txexpr/check.rkt +++ b/txexpr/check.rkt @@ -10,8 +10,8 @@ ;; so the whole attr is converted into a single string for sorting, which lets the attr value act as a tiebreaker. ;; it doesn't matter that this sort may not be correct (in the sense of a desirable ordering) ;; it just needs to be stable (e.g., a certain set of attrs will always sort the same way) - (letrec ([stringify-attr (λ(attr) (string-append (symbol->string (car attr)) (cadr attr)))] - [sort-attrs (λ(x) + (letrec ([stringify-attr (λ (attr) (string-append (symbol->string (car attr)) (cadr attr)))] + [sort-attrs (λ (x) (if (txexpr? x) (let-values ([(tag attr elements) (txexpr->values x)]) (txexpr tag (sort attr #:key stringify-attr #:cache-keys? #t string