Use rstrip to deal with table mode.
Merge pull request #70 from tmm1/rstrip

Use rstrip to deal with table mode.