def GetPreviousNonBlankLine(clean_lines, linenum):
 prevlinenum = (linenum - 1)
 while (prevlinenum >= 0):
  prevline = clean_lines.elided[prevlinenum]
  if (not IsBlankLine(prevline)):
   return (prevline, prevlinenum)
  prevlinenum -= 1
 return ('', (-1))

def GetPreviousNonBlankLine ( clean_lines , linenum ) : prevlinenum = ( linenum - 1 ) while ( prevlinenum >= 0 ) : prevline = clean_lines . elided [ prevlinenum ] if ( not IsBlankLine ( prevline ) ) : return ( prevline , prevlinenum ) prevlinenum -= 1 return ( '' , ( - 1 ) )
return the most recent non-blank line and its line number .