Return a formatted header line.
text (str) – Header text.
width (int) – Total width of the rendered line.
A single line: three dashes, text, then dashes padding to width.
text
width
str