You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let line = Line::from("hello world\ngoodbye world");dbg!(line.spans.len())// 1let line = Line::raw("hello world\ngoodbye world");dbg!(line.spans.len())// 2
The text was updated successfully, but these errors were encountered:
Two spans makes it possible to use &strs, one span would mean that an owned string would have to be constructed from the two lines. I think we currently just filter out the newlines when displaying the spans, so the behavior probably just works alright as-is, but going to two makes sense.
Description
Line::from
doesn't split the spans on new lines:The text was updated successfully, but these errors were encountered: