git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I forgot to remove the >print<s
[sface.git]
/
sface
/
xmlwidget.py
diff --git
a/sface/xmlwidget.py
b/sface/xmlwidget.py
index
2c0f53c
..
39fe7ac
100644
(file)
--- a/
sface/xmlwidget.py
+++ b/
sface/xmlwidget.py
@@
-1,5
+1,6
@@
import os
import sys
import os
import sys
+import re
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.QtGui import *
@@
-238,7
+239,8
@@
class ElemNodeDelegate(QAbstractItemDelegate):
AttListHtml = ''
if len(tmp) > 1:
# many elems don't have atts...
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]
for att in attList:
tmp = att.split('=')
attName = tmp[0]