fix bug in attaching with text that has opposite platform line break style