Skip to content

Commit

Permalink
Write valid leader without counting #527
Browse files Browse the repository at this point in the history
Instead of just appending the incoming leader elements, this adds the static values for Pos: 00-04, 10-16, 20-23.

By using `0`as default value for Pos: 00-04 and 12-16.

#527 (comment)
  • Loading branch information
TobiasNx authored Jun 26, 2024
1 parent 32beffb commit ea05347
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ private void writeLeader() {
if (!leader.isEmpty()) {
prettyPrintIndentation();
writeTag(Tag.leader::open);
writeRaw(leader);
writeRaw("0000" + leader.substring(0, 4) + "2200000" + leader.substring(5, 7) + "4500") // creates a valid leader without counted elements
writeTag(Tag.leader::close);
prettyPrintNewLine();
}
Expand Down

0 comments on commit ea05347

Please sign in to comment.