Page MenuHomePhabricator

Allow paragraphs in references (Cite.php)
Closed, DuplicatePublic

Description

I would like to be able to have long texts including paragraphs in footnotes. But the function referenceText in Cite.php removes all line breaks using rtrim( $text, "\n" ).

Would it be possible to skip this function through an option, a hook or anything?

Event Timeline

Hi @Jiou7, thanks for taking the time to report this and welcome to Wikimedia Phabricator!
This request is not about Requests for new MediaWiki extensions, hence removing MediaWiki-extension-requests.

See also T49544,

<p> ... </p>

Inside a span is as I understood it bad nesting per HTML rules as I understood it, hence stripping the P tags might be necessary to help ensure well formed code?