merge sub/sup into one line