Skip to content

Commit f1fc82b

Browse files
authored
Merge pull request #53 from fsteggink/issue_49_correction
Thanks for the Issue 49 correction. Yes agree we should work on #51 as to remove redundant functionality and future bugs.
2 parents 42a63be + bc0a691 commit f1fc82b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stetl/filters/xmlassembler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ def invoke(self, packet):
3939
# Valid element: consume and handle
4040
self.consume_element(packet)
4141

42+
# Document is obviously not finished, reset EoD/EoS in packet
43+
packet.set_end_of_stream(False)
44+
packet.set_end_of_doc(False)
45+
4246
if packet.is_end_of_stream() or packet.is_end_of_doc() or len(self.element_arr) >= self.max_elements:
4347
# EOF but still data in buffer: make doc
4448
# log.info("Flush doc")

0 commit comments

Comments
 (0)