fix pdf style by adding padding and space for code blocks