From c26f4500e1a0a08b56fb442f5989cb6d6d2caf31 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 16 Mar 2020 11:31:02 +0100 Subject: [PATCH] `E` and `O` format specifiers removed and `A` added --- docs/framework/text_output.rst | 3 ++- src/include/units/format.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/framework/text_output.rst b/docs/framework/text_output.rst index ff87abc1..b7592900 100644 --- a/docs/framework/text_output.rst +++ b/docs/framework/text_output.rst @@ -33,6 +33,7 @@ Formatting the output --------------------- Grammar: +^^^^^^^^ .. productionlist:: units-format-spec: fill-and-align[opt] sign[opt] width[opt] precision[opt] units-specs[opt] @@ -41,5 +42,5 @@ Grammar: : units-specs literal-char literal-char: any character other than '{' or '}' conversion-spec: '%' modifier[opt] type - modifier: one of 'E', 'O' + modifier: 'A' type: one of 'n', 'q', 'Q', 't', '%' diff --git a/src/include/units/format.h b/src/include/units/format.h index 78b4f694..d551a508 100644 --- a/src/include/units/format.h +++ b/src/include/units/format.h @@ -41,8 +41,8 @@ namespace units { // any character other than { or } // conversion-spec: // % modifier[opt] type - // modifier: one of - // E O + // modifier: + // A // type: one of // n q Q t %