mirror of
https://github.com/urbit/shrub.git
synced 2025-01-02 01:25:55 +03:00
chat-cli: print newlines correctly
By accounting for them during text wrapping, instead of letting them fall through to the printer.
This commit is contained in:
parent
ccb994a6d3
commit
7e06e02587
@ -1538,6 +1538,8 @@
|
||||
^- (list tape)
|
||||
?~ txt ~
|
||||
=/ [end=@ud nex=?]
|
||||
=+ ret=(find "\0a" (scag +(wid) `tape`txt))
|
||||
?^ ret [u.ret &]
|
||||
?: (lte (lent txt) wid) [(lent txt) &]
|
||||
=+ ace=(find " " (flop (scag +(wid) `tape`txt)))
|
||||
?~ ace [wid |]
|
||||
|
Loading…
Reference in New Issue
Block a user