Модуль:Loc/Marking: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 199: | Строка 199: | ||
text = process_nowiki_equals(text) | text = process_nowiki_equals(text) | ||
local class = format and "ts-loc-format" or | local class = format and "ts-loc-format" or "" | ||
local content = transform(text) | |||
local | if mw.ustring.find(content, '^[ \t]*[#%*;%:]+') then | ||
content = '\n' .. content | |||
end | end | ||
return frame:preprocess( | return frame:preprocess( | ||
| Строка 216: | Строка 211: | ||
{ src = 'Модуль:Loc/styles.css' } | { src = 'Модуль:Loc/styles.css' } | ||
) .. | ) .. | ||
'<div class="list-reset-margin ' .. class .. '">' .. content .. '</div>' | |||
) | ) | ||
end | end | ||
return p | return p | ||