(Bug 68112): Edge case fix setting autoInsertedStart flag for <p>

* For wikitext like "a\n</p>", the generated HTML "<p>a\n</p>" requires
  an autoInsertedStart flag for the p-tag since it gets marked as
  a HTML p-tag. This can mess up computation of DSR, because without
  the autoInsertedStart flag, the "<p>" tag is seen as occupying
  3 characters of wikitext source, whereas, in reality, it is zero.

  This also affects template encapsulation for {{echo|a\nb\n</p>}}.

  Bug 68112 errors are basically situations like this.

* This patch fixes these encapsulation errors. Verifiable with:
  http://localhost:8000/yiwiki/%D7%94%27%D7%A9%D7%9B%22%D7%90

* Added a template encapsulation parser test that fails without this
  patch but passes with it.

* Unrelated blacklist change which is rather odd. This is a change
  that should have shown up with 703d86a6. Not investigating right now.

Change-Id: I6980722fa507324911d3b34307088ff3ec2ac9a4
Merge "(Bug 68112): Edge case fix setting autoInsertedStart flag for <p>"