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