persist footer and header with new line characters