Skip to content

Commit 8414f02

Browse files
committed
Fix leader indentation when record has a type attribute (#548)
1 parent b57e9e4 commit 8414f02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/MarcXmlEncoder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ public void literal(final String name, final String value) {
338338
if (name.equals(Marc21EventNames.MARCXML_TYPE_LITERAL)) {
339339
if (value != null) {
340340
builder.insert(recordAttributeOffset, String.format(ATTRIBUTE_TEMPLATE, name, value));
341+
recordLeaderOffset = builder.length();
341342
}
342343
}
343344
else if (!appendLeader(name, value)) {

0 commit comments

Comments
 (0)