Изменения

м
тьфу, comment же не один на всех
Строка 41: Строка 41:  
local prefix = args.prefix or args._prefix or args['pre-text'] or args['_pre-text'] or ''
 
local prefix = args.prefix or args._prefix or args['pre-text'] or args['_pre-text'] or ''
 
local postfix = args.postfix or args._postfix or args['post-text'] or args['_post-text'] or ''
 
local postfix = args.postfix or args._postfix or args['post-text'] or args['_post-text'] or ''
local comment = args.comment or args._comment
   
local comment_sep = args.comment_sep or args._comment_sep
 
local comment_sep = args.comment_sep or args._comment_sep
 
local inthemiddle = yesno(args.inthemiddle or args._inthemiddle, false)
 
local inthemiddle = yesno(args.inthemiddle or args._inthemiddle, false)
Строка 72: Строка 71:  
end
 
end
 
table.insert(targs, 1, tname)
 
table.insert(targs, 1, tname)
targs._sep, targs._style, targs._nobr, targs._nocat, targs._spaced, targs['_prefix'], targs['_postfix'], targs._comment, targs._comment_sep
+
targs._sep, targs._style, targs._nobr, targs._nocat, targs._spaced, targs['_prefix'], targs['_postfix'], targs._comment_sep
= sep, style, nobr, nocat, spaced, prefix, postfix, comment, comment_sep
+
= sep, style, nobr, nocat, spaced, prefix, postfix, comment_sep
 
content = content .. opener .. tostring(expand(frame, 'пример', targs)) .. '\n'
 
content = content .. opener .. tostring(expand(frame, 'пример', targs)) .. '\n'
 
end
 
end
Анонимный участник