Topic on Project:Support desk

Riddimshocker (talkcontribs)

There's formatting problem in MW 1.31.0 when <code> tag used. If you start a line inside tag with space, then additional lines appear before and after "code" block.

How to reproduce:

//additional line will appear here by her own

<code>

testline_started_with_space

testline2_started_with_space

</code>

//additional line will appear here by her own

AhmadF.Cheema (talkcontribs)

Don't the two extra lines show up without the spaces too?

Additionally, unless the default CSS rules change, I think <code></code> tags are meant to be used for inline elements, rather than multiline? <pre> or <syntaxhighlight> tags for code blocks.

Reply to "Formatting problem"