code: def straight_line(title, length=100, linestyle="=", pad=0):
          
          text = "{:%s^%s}" % (linestyle, length)
          return text.format("%s%s%s" % (" "*pad, title, " "*pad))
docs: Return a fixed-length straight line with some text at the center.
          
          Usage Example::
              
              >>> StringTemplate.straight_line("Hello world!", 20, "-", 1)
              --- Hello world! ---