[syslinux] Pre-formatted text in the Syslinux wiki

Ady ady-sf at hotmail.com
Thu Mar 24 20:55:13 PDT 2016


Recently the Syslinux wiki was updated, currently using a newer version 
of mediawiki.

"Pre-formatted" text in the Syslinux wiki is frequently being used to 
display commands or configuration entries. The default behavior of 
pre-formatted text used to be non-wrapped (among other 
characteristics), whereas the current default behavior is that 
pre-formatted text is being wrapped (just as "normal" text in the 
wiki).

Although there _might_ be valid reasons for upstream mediawiki to 
change the default behavior of pre-formatted text, this change affects 
the Syslinux wiki in a meaningful way.

I am proposing the following addition:

pre,
.mw-code {
    white-space: pre;
}

to:

 http://www.syslinux.org/wiki/index.php?title=MediaWiki:Common.css 

Such addition should change (back) the default "wrapping" behavior of 
pre-formatted text in the Syslinux wiki.

This should affect the default wrapping behavior of:
_ "pre" tags without specific "white-space" styles;
_ lines of common text starting with an initial space character;

in the Syslinux wiki, making the text "non-wrapped" (as it used to be 
presented in the Syslinux wiki until the recent update of mediawiki 
version).

Any comments / objections?

BTW, the same css hack has been applied to at least one other 
mediawiki-based site.

Would the Syslinux wiki admins consider this request, please?

TIA,
Ady.


More information about the Syslinux mailing list