Replace chomp
with string-trim
, delete former
original commit: 8f461f9f88ec748a0b456c605efd285c8e292663
This commit is contained in:
parent
c5721f2c71
commit
308680c98f
|
@ -8,7 +8,6 @@
|
|||
(prefix-in s: srfi/1)
|
||||
(path-up "rep/type-rep.rkt" "rep/filter-rep.rkt" "rep/object-rep.rkt"
|
||||
"rep/rep-utils.rkt" "types/subtype.rkt"
|
||||
"utils/string.rkt"
|
||||
"utils/utils.rkt"
|
||||
"utils/tc-utils.rkt")
|
||||
(for-syntax racket/base syntax/parse))
|
||||
|
@ -93,7 +92,7 @@
|
|||
(write-string (make-string indent #\space) out)
|
||||
(parameterize ([pretty-print-current-style-table type-style-table])
|
||||
(pretty-display (type->sexp type '()) out))
|
||||
(chomp (substring (get-output-string out) indent)))
|
||||
(string-trim #:left? #f (substring (get-output-string out) indent)))
|
||||
|
||||
;; filter->sexp : Filter -> S-expression
|
||||
;; Print a Filter (see filter-rep.rkt) to the given port
|
||||
|
|
|
@ -6,7 +6,6 @@ don't depend on any other portion of the system
|
|||
|#
|
||||
|
||||
(require syntax/source-syntax "disappeared-use.rkt"
|
||||
"string.rkt"
|
||||
racket/list racket/match racket/promise racket/string
|
||||
syntax/parse (for-syntax racket/base syntax/parse)
|
||||
(only-in unstable/sequence in-slice))
|
||||
|
@ -159,7 +158,8 @@ don't depend on any other portion of the system
|
|||
(values field-strs* (cons value vals))))
|
||||
(define more-msg (if more (string-append ";\n " more "\n") "\n"))
|
||||
(define all-fields (string-join (reverse field-strs) "\n"))
|
||||
(define final-msg (chomp (string-append msg more-msg all-fields)))
|
||||
(define final-msg
|
||||
(string-trim #:left? #f (string-append msg more-msg all-fields)))
|
||||
(if delayed?
|
||||
(apply tc-error/delayed #:stx stx final-msg (reverse vals))
|
||||
(apply tc-error/stx stx final-msg (reverse vals))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user