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() {