---: minor

This commit is contained in:
2026-02-19 20:00:41 +03:00
parent 17ce89d9c0
commit e41245804f
2 changed files with 4 additions and 4 deletions

View File

@@ -38,15 +38,15 @@ class Command(BaseCommand):
# Настройки типографа # Настройки типографа
settings = { settings = {
'langs': ['ru'], 'langs': ['ru'],
'process_html': True, 'process_html': True, # Обрабатываем как HTML
'quotes': True, 'quotes': True,
'layout': LayoutProcessor(langs=['ru'], process_initials_and_acronyms=True, process_units=True), 'layout': LayoutProcessor(langs=['ru'], process_initials_and_acronyms=True, process_units=True),
'unbreakables': True, 'unbreakables': True,
'hyphenation': Hyphenator(langs=['ru'], max_unhyphenated_len=12), 'hyphenation': Hyphenator(langs=['ru'], max_unhyphenated_len=12),
'symbols': True, 'symbols': True,
'hanging_punctuation': 'left', 'hanging_punctuation': 'left', # ВАЖНО: Слева
'mode': 'mixed', 'mode': 'mixed',
'sanitizer': SanitizerProcessor(mode='html'), 'sanitizer': SanitizerProcessor(mode='etp'), # ВАЖНО: Санитайзинг включен (очистит старую разметку)
} }
self.stdout.write(f"Настройка Типографа с параметрами: {settings}") self.stdout.write(f"Настройка Типографа с параметрами: {settings}")

View File

@@ -397,4 +397,4 @@ class TbDictumAndQuotes(models.Model):
class Meta: class Meta:
verbose_name = u"ВЫСКАЗЫВАНИЕ" verbose_name = u"ВЫСКАЗЫВАНИЕ"
verbose_name_plural = u"ВЫСКАЗЫВАНИЯ" verbose_name_plural = u"ВЫСКАЗЫВАНИЯ"
ordering = ['id', ] ordering = ['-id', ]