Skip to content

Commit

Permalink
Merge pull request #3868 from rettinghaus/develop-mei
Browse files Browse the repository at this point in the history
LibMEI: fix typos
  • Loading branch information
lpugin authored Nov 25, 2024
2 parents 4cff339 + 4b3ab62 commit 391d699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmei/tools/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, oddfile, resolve_elements=False):
# self.customization = etree.parse(customization_file)

self.active_modules = [] # the modules active in the resulting output
self.element_structure = {} # the element structure.
self.element_structure = {} # the element structure

self.attribute_group_structure = {} # the attribute group structure
# inverted, so we can map attgroups to modules
Expand Down Expand Up @@ -237,9 +237,9 @@ def cc(self, att_name: str) -> str:

def get_att_desc(self, att_name: str) -> str:
"""
Returns the documentation string for an attribute by name.
Return the documentation string for an attribute by name.
"""
desc = self.schema.find(f"//tei:attDef[@ident='{att_name}']/tei:desc", namespaces=TEI_NS)
desc = self.schema.find(f".//tei:attDef[@ident='{att_name}']/tei:desc", namespaces=TEI_NS)
if desc is None:
return ""

Expand Down

0 comments on commit 391d699

Please sign in to comment.