Fix linebreak regression

Fixes #2457