tweak to support nowrapper mode with text-align = right