static S beforeLineBreak(S s) { ret substring(s, 0, smartIndexOf(s, '\n')); }