Skip to content

Commit

Permalink
Tweaked prettiness of JS in XML output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Gurnell committed Jun 20, 2009
1 parent 13d005f commit 1250e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xml/render-internal.ss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(cond [(plain:quotable-value? val) (plain:quotable-value->string val)]
[(javascript? val) (if pretty?
(javascript->pretty-string val)
(javascript->string val))]
(javascript->packed-string val))]
[else (error (format "Expected quotable value, received ~s." val))]))

; symbol -> boolean
Expand All @@ -36,7 +36,7 @@
; quotable-value -> quotable-value
(define (quote-javascript-attribute-value val)
(if (javascript? val)
(javascript->string val)
(javascript->packed-string val)
val))

; string output-stream -> void
Expand Down

0 comments on commit 1250e20

Please sign in to comment.