Skip to content

Commit 8742dcf

Browse files
authored
workaround for existing ptitle value
No place name handler support, so generate a new entry on the list
1 parent 41c096c commit 8742dcf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lxml/lxmlGramplet.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,11 @@ def ParseXML(self, tree, filename):
420420
# with namespace ...
421421
#print(desc(three))
422422
(tag, items) = three.tag, three.items()
423-
423+
424+
if three.tag == NAMESPACE + 'ptitle':
425+
text = str(three.text)
426+
if text not in places:
427+
places.append(text) # temp display
424428
if three.tag == NAMESPACE + 'pname':
425429
text = str(three.attrib.get('value'))
426430
translation = str(three.attrib.get('lang'))

0 commit comments

Comments
 (0)