Page MenuHomePhabricator

Increase indent of mw.dumpObject() table output
Open, Needs TriagePublic

Description

Currently, Lua tables dumped with mw.dumpObject() or mw.logObject() have their nested parts indented with two space characters. I think it'd be more readable if they were indented by four characters.

Current indenting:

table#1 {
  ["a"] = table#2 {
    ["b"] = table#3 {
    },
  },
}

Proposed indenting:

table#1 {
    ["a"] = table#2 {
        ["b"] = table#3 {
        },
    },
}

Event Timeline

Change 788306 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/Scribunto@master] Increase mw.dumpObject() indent size

https://gerrit.wikimedia.org/r/788306

Change 788306 merged by jenkins-bot:

[mediawiki/extensions/Scribunto@master] Increase mw.dumpObject() indent size

https://gerrit.wikimedia.org/r/788306