Skip to content

Commit

Permalink
Fix mangled adl files
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell authored and root committed Oct 27, 2023
1 parent 17bea1e commit 50de151
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pvi/_format/adl.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def set(
properties["height"] = bounds.h

for item, value in properties.items():
if template.startswith('"related display"'):
if template.startswith('"related display"') and item == "name":
value = f"{value}.adl" # Must include file extension

# Only need single line
Expand Down
8 changes: 4 additions & 4 deletions tests/format/output/static_table.adl
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ byte {
}
"related display" {
object {
x="4.adl"
y="54.adl"
width="408.adl"
height="20.adl"
x=4
y=54
width=408
height=20
}
display[0] {
name="static_table_BigTable.adl"
Expand Down

0 comments on commit 50de151

Please sign in to comment.