[DF-4762] Add BiDi support flag. Fix split lines when need break at last symbol.