Last modified: 2014-09-18 00:44:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72980, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70980 - CSS tab-size is not set
CSS tab-size is not set
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-18 00:15 UTC by Yuri Astrakhan
Modified: 2014-09-18 00:44 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yuri Astrakhan 2014-09-18 00:15:55 UTC
Browsers support tab-size property, but scribunto does not set it to 4, leaving it at the browser's default 8. Please set it to allow better viewing of the code. Thanks!
Comment 1 Jackmcbarn 2014-09-18 00:17:15 UTC
Are you referring to the way the code looks in the editor? Scribunto doesn't affect that at all. By the way, Extension:CodeEditor will let you use a tab size of 4.
Comment 2 Yuri Astrakhan 2014-09-18 00:18:28 UTC
No, I am talking about the rendering of the code, not editing it. Tab chars show as 8 spaces.
Comment 3 Jackmcbarn 2014-09-18 00:23:15 UTC
If you want that, you can add .mw-script { tab-size: 4; } to your MediaWiki:Common.css. Note that Firefox doesn't currently support that option; there's a bug at https://bugzilla.mozilla.org/show_bug.cgi?id=943918 about that.
Comment 4 Yuri Astrakhan 2014-09-18 00:30:51 UTC
Thanks Jackmcbarn, but there is no class mw-script in the scribunto output. That <pre class="lua source-lua">...</pre>
Comment 5 Jackmcbarn 2014-09-18 00:31:55 UTC
What version of Scribunto is this? In the latest version the class is mw-script.
Comment 6 Yuri Astrakhan 2014-09-18 00:35:46 UTC
The one we have on the cluster - (6707496) 17:43, 11 September 2014, sandbox 1.9-1. I just updated commons.css for zerowiki using .source-lua, works well in chrome. I think we should do it for all wikis.
Comment 7 Jackmcbarn 2014-09-18 00:37:27 UTC
1.9-1 is the version of LuaSandbox. What's the version of Scribunto?
Comment 8 Jackmcbarn 2014-09-18 00:38:56 UTC
Oh, I see. GeSHi is overriding it. This is probably more its bug than our bug.
Comment 9 Jackmcbarn 2014-09-18 00:44:03 UTC
As I think about this some more, this really is entirely an on-wiki configuration issue, not a code bug. If you want the change made, ask the wiki's administrators to add it to that wiki's common.css.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links