support header/footer line and spacing