Fix linebreak regression

Fixes #2457
auto merge of #2458 : bjz/servo/fix-regression, r=pcwalton

Fixes #2457