Skip to content

Commit

Permalink
Merge pull request #891 from hed-standard/dev_fix_wiki_write
Browse files Browse the repository at this point in the history
Fix check if that should be top level when writing
  • Loading branch information
VisLab authored Mar 25, 2024
2 parents b8a6a62 + 6565a34 commit 757d570
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hed/schema/schema_io/schema2base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def _output_tags(self, tags):
tag = tag_entry.name
level = tag.count("/")

if not tag_entry.has_attribute(HedKey.InLibrary):
# Don't adjust if we're a top level tag(if this is a rooted tag, it will be re-adjusted below)
if not tag_entry.parent_name:
level_adj = 0
if level == 0:
root_tag = self._write_tag_entry(tag_entry, schema_node, level)
Expand Down

0 comments on commit 757d570

Please sign in to comment.