Indent-pre <nowiki>s not required in <ref> content.

* Should fix regression seen in RT testing.
* Added a new test to capture this expectation.
* Added FIXME to clean up and refactor this code.

Change-Id: I7b159535601f7fd263cb1ed50d881c2aa29c2c25