From c4d237e97b5ff24d75a0e0f16e2556e2963bf70a Mon Sep 17 00:00:00 2001 From: jez Date: Tue, 21 Oct 2008 22:54:37 +0100 Subject: [PATCH] Bugfix: flush buffer on startEntity/endEntity --- include/SAX/filter/TextCoalescer.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/SAX/filter/TextCoalescer.hpp b/include/SAX/filter/TextCoalescer.hpp index 9639071f..ec17ea48 100644 --- a/include/SAX/filter/TextCoalescer.hpp +++ b/include/SAX/filter/TextCoalescer.hpp @@ -82,6 +82,19 @@ public: XMLFilterT::comment(text); } // comment + virtual void startEntity(const string_type& name) + { + flush(); + XMLFilterT::startEntity(name); + } // startEntity + + virtual void endEntity(const string_type& name) + { + flush(); + XMLFilterT::endEntity(name); + } // endEntity + + private: void flush() {