Skip to content

Commit 8e5aaa8

Browse files
author
mgeipel
committed
fixed #64
1 parent 353241e commit 8e5aaa8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/culturegraph/mf/stream/pipe/IdChangePipe.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void setIdName(final String idName) {
5757
public void setKeepIdless(final boolean keepIdless) {
5858
this.keepIdless = keepIdless;
5959
}
60-
60+
6161
@Override
6262
public void startRecord(final String identifier) {
6363
assert !isClosed();
@@ -98,8 +98,9 @@ public void endEntity() {
9898
public void literal(final String name, final String value) {
9999
if (depth == 0 && idName.equals(name)) {
100100
currentIdentifier = value;
101+
} else {
102+
streamBuffer.literal(name, value);
101103
}
102-
streamBuffer.literal(name, value);
103104
}
104105

105106
@Override

0 commit comments

Comments
 (0)