Do proper line break support with help from @Melvar