Merge "Add the paragraph's direction to all lines." into new_text