From 18dfe37f8c64fe43ff6b7aa0e4f42f0d9d7e9e7c Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 15 Jan 2018 00:37:32 +0900 Subject: [PATCH] Enable text_add_secnumbers by default (refs: #4218) --- CHANGES | 4 ++-- doc/config.rst | 2 +- sphinx/builders/text.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 69764b902..e15890e32 100644 --- a/CHANGES +++ b/CHANGES @@ -88,8 +88,8 @@ Features added to let Google Translate know they are not translatable * #4137: doctest: doctest block is always highlighted as python console (pycon) * #4137: doctest: testcode block is always highlighted as python -* #3998: text: Add new config values :confval:`text_add_secnumbers` and - :confval:`text_secnumber_suffix` +* #3998: text: Assign section numbers by default. You can control it using + :confval:`text_add_secnumbers` and :confval:`text_secnumber_suffix` Features removed ---------------- diff --git a/doc/config.rst b/doc/config.rst index 56d673d29..830fb69a0 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -2042,7 +2042,7 @@ These options influence text output. .. confval:: text_add_secnumbers A boolean that decides whether section numbers are included in text output. - Default is ``False``. + Default is ``True``. .. versionadded:: 1.7 diff --git a/sphinx/builders/text.py b/sphinx/builders/text.py index e894f9936..babb6ccee 100644 --- a/sphinx/builders/text.py +++ b/sphinx/builders/text.py @@ -97,7 +97,7 @@ def setup(app): app.add_config_value('text_sectionchars', '*=-~"+`', 'env') app.add_config_value('text_newlines', 'unix', 'env') - app.add_config_value('text_add_secnumbers', False, 'env') + app.add_config_value('text_add_secnumbers', True, 'env') app.add_config_value('text_secnumber_suffix', '. ', 'env') return {