mediawiki-extensions-Discus.../includes
Bartosz Dziewoński 6e37a172ae Fix detecting decorative comment frames with whitespace
As a result of 0fc71f60cd, "empty" text
nodes (containing only whitespace) at the end of the comment may be
inside the comment's range, and trying to ignore them caused the
ranges not to match and the frame not to be detected.

Now the code works whether they're inside the comment's range or not.

Add a test case for wrapped discussion comments with HTML comments and
with whitespace.

Bug: T250126
Bug: T268407
Change-Id: I2217ff5a635fd1c9c9e803f46795b1bfb3d17535
2021-01-04 20:31:33 +01:00
..
ApiDiscussionTools.php Include 'false' results in 'transcludedfrom' API response 2020-10-22 22:25:35 +02:00
ApiDiscussionToolsEdit.php Move ID->title logic into HeadingItem 2020-11-05 16:10:39 +00:00
CommentFormatter.php CommentFormatter: Don't parse replylink label 2020-12-15 22:18:08 +00:00
CommentItem.php Add method to strip trailing hyphens from comment bodies 2020-11-22 21:49:09 +00:00
CommentModifier.php Handle category links like comments (rendering-transparent nodes) 2020-12-08 21:39:16 +00:00
CommentParser.php Skip to the end of the paragraph if it's just text, too 2020-11-25 00:48:53 +01:00
CommentUtils.php Fix detecting decorative comment frames with whitespace 2021-01-04 20:31:33 +01:00
Data.php build: Updating mediawiki/mediawiki-codesniffer to 32.0.0 2020-10-29 10:53:01 +00:00
HeadingItem.php Move ID->title logic into HeadingItem 2020-11-05 16:10:39 +00:00
Hooks.php Make Hooks::$tags a constant 2020-12-17 21:17:58 +00:00
ImmutableRange.php ImmutableRange: Guard against appending empty fragments 2020-11-16 19:22:26 +00:00
NodeFilter.php CommentParser.php: Use tree walking instead of XPath 2020-07-15 16:40:50 +00:00
ThreadItem.php De-indent multi line comments when fetching comment bodies 2020-11-22 21:49:08 +00:00
TreeWalker.php Base TreeWalker implementation on PHPDOM 2020-11-19 23:45:42 +00:00