Commits

Robert Mařík  committed f62ad12

ignore <style> .... </style> (like the header added by tex2sws)

  • Participants
  • Parent commits 600ba03

Comments (0)

Files changed (1)

File html2latex.py

         elif tag == 'img':
             # dict(attrs).get('src') looks like cell://name.png
             self.latex[-1] += "\\includegraphics{sage_worksheet/cells/%s/%s}" % (self.cell_id,dict(attrs).get('src')[7:])
+        elif tag == 'style':
+            self.latex[-1] += r'\iffalse % style commented out '
         else:
             if self.options != None and not self.options.ignore_unknown_tags:
                 self.latex[-1] += self.tag2string(tag, attrs)
             self.latex[-1] += '}'
         elif tag == 'font':
             self.add_data()
+        elif tag == 'style':
+            self.add_data()
+            self.latex[-1] += '\\fi \n'
         else:
             self.add_data()
             if self.options != None and not self.options.ignore_unknown_tags: