Adjust the `dir="rtl"` output (see #7171)