uncontract

dev-render-audit
Matthew Butterick 5 years ago
parent b9551de05e
commit 6d63bc020e

@ -262,15 +262,15 @@
(define+provide/contract (get-source path) (define+provide (get-source path)
(coerce/path? . -> . (or/c #f path?)) #;(coerce/path? . -> . (or/c #f path?))
(ormap (λ (proc) (proc path)) (list get-markup-source get-markdown-source get-preproc-source get-null-source get-scribble-source))) (ormap (λ (proc) (proc path)) (list get-markup-source get-markdown-source get-preproc-source get-null-source get-scribble-source)))
;; for backward compatibility ;; for backward compatibility
(define+provide ->source-path get-source) (define+provide ->source-path get-source)
(define+provide/contract (->output-path x) (define+provide (->output-path x)
(coerce/path? . -> . coerce/path?) #;(coerce/path? . -> . coerce/path?)
(cond (cond
[(or (markup-source? x) (preproc-source? x) (null-source? x) (markdown-source? x)) [(or (markup-source? x) (preproc-source? x) (null-source? x) (markdown-source? x))
(define output-path (unescape-ext (remove-ext x))) (define output-path (unescape-ext (remove-ext x)))

@ -1 +1 @@
1559938751 1559943526

Loading…
Cancel
Save