fix center and right aligned text

Issue #68
Issue #70