Update list_items.php

- Deleted extra space
- Added a test to show headers= only when the option show_headings is set to avoid W3C validation error