(Bug 52473) Deal with trailing WS after indented tables

* Trailing whitespace after table-closing tag ("|}") for an
  indented table was breaking table-parse.  This patch fixes that.

* Try this before/after:
echo ":{|\n|a\n|} " | node parse

* Added new parsoid-only parser test since it is hard to get
  this working with both PHP and Parsoid without causing spurious
  test failures.

Change-Id: I5ebafdaaa2304a1055136207a226f2127627193c
Merge "(Bug 52473) Deal with trailing WS after indented tables"