Skip to content

Commit 42c474e

Browse files
committed
Fix formatting
1 parent 61b79fb commit 42c474e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Doc/library/re.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,15 +1705,21 @@ expressions.
17051705
| ``%x``, ``%X`` | ``[-+]?(0[xX])?[\dA-Fa-f]+`` |
17061706
+--------------------------------+---------------------------------------------+
17071707

1708-
To extract the filename and numbers from a string like ::
1708+
To extract the filename and numbers from a string like:
1709+
1710+
.. code-block:: text
17091711
17101712
/usr/sbin/sendmail - 0 errors, 4 warnings
17111713
1712-
you would use a :c:func:`!scanf` format like ::
1714+
you would use a :c:func:`!scanf` format like:
1715+
1716+
.. code-block:: text
17131717
17141718
%s - %d errors, %d warnings
17151719
1716-
The equivalent regular expression would be ::
1720+
The equivalent regular expression would be:
1721+
1722+
.. code-block:: text
17171723
17181724
(\S+) - (\d+) errors, (\d+) warnings
17191725

0 commit comments

Comments
 (0)