Content deleted Content added
Testing the fixing of empty alt linter errors |
not even sure alts work, so I'm gonna see what removing them does. Initial pipe missing is the only time its a problem, so I'm only removing it then for now |
||
Line 113:
file = mw.ustring.gsub(file, '|%s*upright%s*=.-([|%]])', '%1')
file = mw.ustring.gsub(file, '|%s*link%s*=.-([|%]])', '%1')
--
▲ file = mw.ustring.gsub(file, '>alt=|', '>|alt=|')
file = mw.ustring.gsub(file, '([^|])alt=[^|%]]+', '%1')
-- remove spaces prior to captions (which cause pre-formatted text)
file = mw.ustring.gsub(file, '|%s*', '|')
|