@checker('.html', severity=2, falsepositives=True)
def check_leaked_markup(fn, lines):
 for (lno, line) in enumerate(lines):
  if leaked_markup_re.search(line):
   (yield ((lno + 1), ('possibly leaked markup: %r' % line)))

@ checker ( '.html' , severity = 2 , falsepositives = True ) def check_leaked_markup ( fn , lines ) : for ( lno , line ) in enumerate ( lines ) : if leaked_markup_re . search ( line ) : ( yield ( ( lno + 1 ) , ( 'possibly leaked markup: %r' % line ) ) )
check html files for leaked rest markup; this only works if the html files have been built .