further fixes #35: header and footer line for simple/multiline tables
remove extra newline before caption with simple tables without header