Template talk:Citation/fcite web

Latest comment: 5 years ago by Anomalocaris in topic spurious newline

spurious newline

edit

Wikid77, Gadget850, Plastikspork: This template puts out a spurious newline character. Most of the time, it has no effect, but in special cases, it can cause lint errors.

{{citation/fcite web|help |title=''Mein Seite''|trans-title=My Page}}

expands to

<span class="citation web" >"''Mein Seite''".</span><span
  style="color:maroon"><br>'''Fcite_web''': Found "trans-title=" - use underbar "trans_title=".
</span>

which is fine. But preceded this with a colon and we have problems.

: {{citation/fcite web|help |title=''Mein Seite''|trans-title=My Page}}

expands to

: <span class="citation web" >"''Mein Seite''".</span><span
  style="color:maroon"><br>'''Fcite_web''': Found "trans-title=" - use underbar "trans_title=".
</span>

and here the final </span> is stripped and doesn't close the preceding <span>.

So we need to stop putting out the spurious newline character. —Anomalocaris (talk) 22:39, 22 September 2019 (UTC)Reply