Skip to content

Commit

Permalink
Fix leader indentation when record has a type attribute (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Sep 20, 2024
1 parent b57e9e4 commit 8414f02
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ public void literal(final String name, final String value) {
if (name.equals(Marc21EventNames.MARCXML_TYPE_LITERAL)) {
if (value != null) {
builder.insert(recordAttributeOffset, String.format(ATTRIBUTE_TEMPLATE, name, value));
recordLeaderOffset = builder.length();
}
}
else if (!appendLeader(name, value)) {
Expand Down

0 comments on commit 8414f02

Please sign in to comment.