Topic on Extension talk:Lingo

Lingo breaking formatting when citations at end of line

1
Danny252 (talkcontribs)

We've found an odd formatting issue that pops up when Lingo is enabled. The following code should generate four headings with indented text below them, some with references before the full stop, and some after:

'''Heading 1'''
:Indented text with reference followed by a line break with clear which should clear previous formatting.<ref>Reference1</ref>

'''Heading 2'''
:Indented text with reference followed by blank line only, reference after punctuation.<ref>Reference 2</ref>

'''Heading 3'''
:Indented text with reference followed by blank line only, reference before punctuation<ref>Reference 3</ref>.

'''Heading 4'''
:And so on. All these display as expected in preview mode, including an extra line between 1 and 2. 

<references />

The expected formatting is shown in this image. However, when Lingo is enabled, the formatting is not correctly cleared at the end of any line where a citation comes after the punctuation - see this image. Inspection of the HTML source shows that various formatting tags are not being closed.

This occurs with Mediawiki 1.28.2 with Lingo 2.0.3, but also occurred on 1.24 with an older version of Lingo. --Danny252 (talk) 20:12, 20 June 2017 (UTC)

Reply to "Lingo breaking formatting when citations at end of line"