Skip to content

Commit

Permalink
Simpler implementation of nest-indent
Browse files Browse the repository at this point in the history
  • Loading branch information
uliska committed Mar 14, 2017
1 parent 590327f commit 39bba6e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions annotate/export-html.ily
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#(define (nest-indent inpt num)
(let* ((indentation ""))
(do ((i 0 (1+ i)))
((= i num))
(set! indentation (string-append indentation " ")))
(string-append indentation inpt)))

(string-append (make-string num #\space) inpt))

% convenience functions
#(define (classify-html-tag class)
Expand Down

0 comments on commit 39bba6e

Please sign in to comment.