From 1aa8f2f5c51fc8864c34a6f865e7caed465a4e81 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 12 Dec 2012 16:09:50 -0800 Subject: [PATCH] productionlist doesn't work on github, using parsed-literal instead. --- README.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 180375de..042d470d 100644 --- a/README.rst +++ b/README.rst @@ -81,16 +81,16 @@ escaped by doubling: ``{{`` and ``}}``. The grammar for a replacement field is as follows: -.. productionlist:: +.. parsed-literal:: - replacement_field: "{" `arg_index` [":" `format_spec`] "}" - arg_index: integer - format_spec: ["+"]["0"][`width`]["." `precision`][`type`] - width: integer - precision: integer | "{" `arg_index` "}" - type: "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "o" | "p" | "s" | "x" | "X" + `replacement_field`: "{" `arg_index` [":" `format_spec`] "}" + `arg_index`: integer + `format_spec`: ["+"]["0"][`width`]["." `precision`][`type`] + `width`: integer + `precision`: integer | "{" `arg_index` "}" + `type`: "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "o" | "p" | "s" | "x" | "X" -Preceding the `width`_ field with ``0`` makes the padding to be placed +Preceding the `width` field with ``0`` makes the padding to be placed after the sign (if any) but before the digits. This is used for printing fields in the form ``+000000120``. This option is only valid for numeric types.