Strip trailing spaces from print_rows_as_text() lines

Signed-off-by: Pamela McA'Nulty <pamela@webreply.com>