Commits

Mike Bayer committed 5df937a

spiffy titles

  • Participants
  • Parent commits b78ee19

Comments (0)

Files changed (1)

sliderepl/core.py

             title = None
 
             if self.title:
-                title = "%%% " + self.title
+                title = "*** " + self.title + " ***"
+                box_size = max(box_size, len(title))
 
-                box_size = max(box_size, len(title))
             if self.intro:
                 box_size = max(*[box_size] + [len(l) for l in self.intro])
 
                 if title:
                     banner += "| %s%s|\n" % (
                                 title, (" " * (box_size - len(title) - 2)))
+                    banner += "+%s+\n" % ("-" * (box_size - 1))
 
                 if self.intro:
                     banner += "\n".join(