7ac354fd09
We will no longer break in the middle of words, only at whitespace or punctuation. This means we sometimes over-run, but that seems better than some of the bad splits we see. Closes #369
14 lines
632 B
Rust
14 lines
632 B
Rust
fn main() {
|
|
println!("ThisIsAReallyLongStringWithNoSpaces.It_should_prefer_to_break_onpunctuation:\
|
|
Likethisssssssssssss");
|
|
format!("{}__{}__{}ItShouldOnlyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyNoticeSemicolonsPeriodsColonsAndCommasAndResortToMid-CharBreaksAfterPunctuation{}{}",
|
|
x,
|
|
y,
|
|
z,
|
|
a,
|
|
b);
|
|
println!("aaaaaaaaaaaaaaaaaaaaaaaaaaaaalhijalfhiigjapdighjapdigjapdighdapighapdighpaidhg;\
|
|
adopgihadoguaadbadgad,qeoihapethae8t0aet8haetadbjtaeg;\
|
|
ooeouthaoeutgadlgajduabgoiuadogabudogubaodugbadgadgadga;adoughaoeugbaouea");
|
|
}
|