#NEWLINE# def _render( self , index , storyid = None ) : #NEWLINE# #INDENT# ' Render a story ' #NEWLINE# layout = '\n        {index:2n}. {title} - ({hostname})\n            {score} points by {by} {time} ago | {descendants} comments\n        ' #NEWLINE# data = self . program . state . stories [ storyid ] #NEWLINE# return layout . format ( index = index , ** data )