From c947ff96c22ed8893ba684b0ba6c3067f41a0519 Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Tue, 5 Jul 2016 19:57:03 +0300 Subject: [PATCH] one more option --- _posts/2016-06-05-aw-formatters-and-macros.md | 1 + ru/_posts/2016-06-05-aw-formatters-and-macros.md | 1 + 2 files changed, 2 insertions(+) diff --git a/_posts/2016-06-05-aw-formatters-and-macros.md b/_posts/2016-06-05-aw-formatters-and-macros.md index 558f845..1230005 100644 --- a/_posts/2016-06-05-aw-formatters-and-macros.md +++ b/_posts/2016-06-05-aw-formatters-and-macros.md @@ -66,6 +66,7 @@ Converts any number to string. | Field | Required | Value | Default | | -------------------|----------|----------------------------------|------------| | X-AW-FillChar | no | char to fill number to `X-AW-Width` | (space) | +| X-AW-ForceWidth | no | strip string after `X-AW-Width` | false | | X-AW-Format | no | Qt specific number format, supported values are `e`, `E`, `f`, `g`, `G` | `f` | | X-AW-Multiplier | no | float to which value will be multiplied | 1.0 | | X-AW-Precision | no | show this count of symbols after dot | -1 (as expected) | diff --git a/ru/_posts/2016-06-05-aw-formatters-and-macros.md b/ru/_posts/2016-06-05-aw-formatters-and-macros.md index 1b61fdc..99238e2 100644 --- a/ru/_posts/2016-06-05-aw-formatters-and-macros.md +++ b/ru/_posts/2016-06-05-aw-formatters-and-macros.md @@ -68,6 +68,7 @@ cpu=myformatter | Поле | Обязательное | Значение | По-умолчанию | | -------------------|--------------|----------------------------------|--------------| | X-AW-FillChar | нет | символ для заполнения до `X-AW-Width` | (space) | +| X-AW-ForceWidth | нет | обрезать строку после `X-AW-Width` | false | | X-AW-Format | нет | Qt специфичный формат числа, поддерживаются: `e`, `E`, `f`, `g`, `G` | `f` | | X-AW-Multiplier | нет | число, на которое значение будет умножено | 1.0 | | X-AW-Precision | нет | число знаков после запятой | -1 (как получится) |