fix line breaking when breaking on last character