From 2f70179fba84c60b6af4ae0d6772ee133ccb0af9 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Sun, 11 May 2025 08:54:35 +0100 Subject: [PATCH 1/4] Exclude in gettext --- Doc/reference/grammar.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst index b9cca4444c9141..63a8027c3132f5 100644 --- a/Doc/reference/grammar.rst +++ b/Doc/reference/grammar.rst @@ -18,5 +18,7 @@ required *not* to match). We use the ``|`` separator to mean PEG's "ordered choice" (written as ``/`` in traditional PEG grammars). See :pep:`617` for more details on the grammar's syntax. -.. literalinclude:: ../../Grammar/python.gram - :language: peg +.. only:: html or pdf or epub + + .. literalinclude:: ../../Grammar/python.gram + :language: peg From 9229515335ce27496f9c436aeabfdc51e27665f9 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Sun, 11 May 2025 08:56:57 +0100 Subject: [PATCH 2/4] Simplify logic --- Doc/reference/grammar.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst index 63a8027c3132f5..ea6881b3100df3 100644 --- a/Doc/reference/grammar.rst +++ b/Doc/reference/grammar.rst @@ -18,7 +18,7 @@ required *not* to match). We use the ``|`` separator to mean PEG's "ordered choice" (written as ``/`` in traditional PEG grammars). See :pep:`617` for more details on the grammar's syntax. -.. only:: html or pdf or epub +.. only:: not gettext .. literalinclude:: ../../Grammar/python.gram :language: peg From f55674e6b5519494fa11075a0ea3c7467aefe8b8 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Sun, 11 May 2025 08:59:28 +0100 Subject: [PATCH 3/4] Un-simplify --- Doc/reference/grammar.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst index ea6881b3100df3..05161dd22aa0de 100644 --- a/Doc/reference/grammar.rst +++ b/Doc/reference/grammar.rst @@ -18,7 +18,7 @@ required *not* to match). We use the ``|`` separator to mean PEG's "ordered choice" (written as ``/`` in traditional PEG grammars). See :pep:`617` for more details on the grammar's syntax. -.. only:: not gettext +.. only:: html or latex or epub .. literalinclude:: ../../Grammar/python.gram :language: peg From 29ee6d9e236dedfdaf1a3cb7f36ec0c596fe1227 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 12 May 2025 07:52:31 +0100 Subject: [PATCH 4/4] Include more --- Doc/reference/grammar.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst index 05161dd22aa0de..1c8f8cdcfea8ab 100644 --- a/Doc/reference/grammar.rst +++ b/Doc/reference/grammar.rst @@ -18,7 +18,7 @@ required *not* to match). We use the ``|`` separator to mean PEG's "ordered choice" (written as ``/`` in traditional PEG grammars). See :pep:`617` for more details on the grammar's syntax. -.. only:: html or latex or epub +.. only:: html or latex or epub or text or texinfo .. literalinclude:: ../../Grammar/python.gram :language: peg