Use rstrip to deal with table mode.

Fixes #48