Skip to content

Commit 93dce35

Browse files
Removing problem for absolute path on element
1 parent 744df9d commit 93dce35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/jsnap2py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def msg_change(x):
2323
re.I)
2424
if data:
2525
data = data[0]
26+
if(data[1].startswith('/')):
27+
data = (data[0],data[1][1:])
2628
if data[0] in ['id', 'ID']:
2729
data = (data[0], int(data[1])-1)
2830
msg = "{{%s_%s}}" % (data)

0 commit comments

Comments
 (0)