Skip to content

Weird output with *print-circle* t #552

Description

@vi1

;; ccl output this: " #1=___ qwe #1# "
 
(setf *print-circle* t)
 
(defun centered-string (n string)
  (let ((w (max 0 (floor (- n (length string) 4) 2))))
    (let ((m (make-string w :initial-element #\_)))
      (format nil " ~a ~a ~a " m string m))))
 
(print (centered-string 14 "qwe"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions