sweble / sweble-wikitext

The Sweble Wikitext Components module provides a parser for MediaWiki's wikitext and an engine trying to emulate the behavior of a MediaWiki.
http://sweble.org/sites/swc-devel/develop-latest/tooling/sweble/sweble-wikitext
70 stars 27 forks source link

Merge text nodes in NodeList and remove AstCompressor class #11

Closed hannesd closed 11 years ago

hannesd commented 11 years ago

Instead of explicitly merging text nodes with the AstCompressor class merge text nodes automatically when they are added to a container (NodeList).

Related to old mantis bug: http://sweble.org/bugtracker/view.php?id=19

hannesd commented 11 years ago

Fixed. However, text nodes are only merged "backwards". This means that if a text node is inserted in front of another text node these nodes will not be merged! The semantics of the set() and add() methods, especially for the ListIterator, have changed as well.