This one was a real headbanger. The form failed to render for me, escaping some of the form HTML and placing it inside <pre><code> tags. After experimenting with different HTML content in CookiePolicyPageController I eventually realised that 4 leading spaces was the problem, and then twigged that the module silverstripers/markdown was the cause. This PR simply removes leading and trailing whitespace from each line of the injected form. The lack of 4 leading spaces means that the form renders, and it should of course not affect the form rendering when the markdown module is not installed.
This one was a real headbanger. The form failed to render for me, escaping some of the form HTML and placing it inside
<pre><code>
tags. After experimenting with different HTML content inCookiePolicyPageController
I eventually realised that 4 leading spaces was the problem, and then twigged that the modulesilverstripers/markdown
was the cause. This PR simply removes leading and trailing whitespace from each line of the injected form. The lack of 4 leading spaces means that the form renders, and it should of course not affect the form rendering when the markdown module is not installed.