Fix table borders in RTL documents #1730