code: def escape_pre_section(table):
      
      def replace_newline(g):
          return g.group(1).replace('\n', '\n.br\n')
  
      return re.sub('<pre.*?>(.*?)</pre>', replace_newline, table, flags=re.S)
docs: Escape <pre> section in table.