Skip to content
This repository
Browse code

Merge pull request #62 from adhiraj/import_sentence

Add semicolon to style data for safety
commit c654527042f401ec661266e74d90d101ba3eb506 2 parents 8ae9193 + 65a540b
Aaron Swartz authored November 19, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  html2text.py
1  html2text.py
@@ -110,6 +110,7 @@ def dumb_property_dict(style):
110 110
 def dumb_css_parser(data):
111 111
     """returns a hash of css selectors, each of which contains a hash of css attributes"""
112 112
     # remove @import sentences
  113
+    data += ';'
113 114
     importIndex = data.find('@import')
114 115
     while importIndex != -1:
115 116
         data = data[0:importIndex] + data[data.find(';', importIndex) + 1:]

0 notes on commit c654527

Please sign in to comment.
Something went wrong with that request. Please try again.