mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Add Kazakh language option in UI
This commit is contained in:
parent
8bfa7ca63b
commit
86c234f2a1
@ -398,6 +398,7 @@ LANGUAGES = [
|
||||
('hr', _('Croatian')),
|
||||
('hu', _('Hungarian')),
|
||||
('ja', _('Japanese')),
|
||||
('kk', _('Kazakh')),
|
||||
('ko', _('Korean')),
|
||||
('pt', _('Brazilian Portuguese')),
|
||||
('ro', _('Romanian')),
|
||||
|
@ -154,9 +154,9 @@ def strip_paragraphs_tags(tree):
|
||||
parent = p.getparent()
|
||||
prev = p.getprevious()
|
||||
if prev is not None:
|
||||
prev.tail = (prev.tail or '') + p.text
|
||||
prev.tail = (prev.tail or '') + (p.text or '')
|
||||
else:
|
||||
parent.text = (parent.text or '') + p.text
|
||||
parent.text = (parent.text or '') + (p.text or '')
|
||||
parent.remove(p)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user