RFC T157418: Trim whitespace in table cells, list items, headings
authorSubramanya Sastry <ssastry@wikimedia.org>
Thu, 1 Mar 2018 23:02:54 +0000 (17:02 -0600)
committerSubramanya Sastry <ssastry@wikimedia.org>
Fri, 16 Mar 2018 18:42:55 +0000 (13:42 -0500)
commit30495ea1f904953784fb36751d55da233d616215
treea9c5b7fb138d9025836f39c32486d9df82207075
parent92a0deae6481f6d63b2e2b561b230b3c06b5d8c9
RFC T157418: Trim whitespace in table cells, list items, headings

* Matmarex had implemented this for wikitext headings in b3dd3881.
* This patch extends this to wikitext list items and wikitext table cells.
* Updated RELEASE NOTES.

tests/parser/parserTests.txt:
* All whitespace removed in output of list items, table cells, and
  headings. Removed corresponding whitespace in the input wikitext
  except for a few tests where the whitespace is significant "| +"
  or "| -", for example.
* Updated output of html/parsoid sections as well.
* Added new tests to spec white-space trimming behavior.

tests/phpunit/*:
* Fixed a few tests that used whitespace in list items and table cells.

Bug: T157418
Change-Id: I8ea34c7ab893c0c125c81d810feeb3c581e4bba1
RELEASE-NOTES-1.31
includes/parser/BlockLevelPass.php
includes/parser/Parser.php
tests/parser/parserTests.txt
tests/phpunit/includes/StatusTest.php
tests/phpunit/includes/content/WikitextStructureTest.php