import os
import sys
+import re
from PyQt4.QtCore import *
from PyQt4.QtGui import *
AttListHtml = ''
if len(tmp) > 1:
# many elems don't have atts...
- attList = tmp[1].split()
+ pttrnAtt = ' *?.+.?=".*?"'
+ attList = re.compile(pttrnAtt, re.DOTALL).findall(tmp[1])
for att in attList:
tmp = att.split('=')
attName = tmp[0]