diff --git a/ChangeLog.rst b/ChangeLog.rst index fde9c4ad..49206ae1 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -88,6 +88,9 @@ prints "0,42". +* Fixed handling of the ``'+'`` specifier in localized formatting + (`#2133 `_). + * Added support for the ``'s'`` format specifier that gives textual representation of ``bool`` (`#2109 `_). For example: @@ -103,6 +106,19 @@ prints "true". Thanks `@powercoderlol (Ivan Polyakov) `_. +* Made ``fmt::ptr`` work with function pointers + (`#2131 `_). For example: + + .. code:: c++ + + #include + + int main() { + fmt::print("my main: {}\n", fmt::ptr(main)); + } + + Thanks `@mikecrowe (Mike Crowe) `_. + * Fixed handling of empty format strings during format string compilation (`#2042 `_): @@ -115,7 +131,22 @@ * Fixed handling of enums in ``fmt::to_string`` (`#2036 `_). -* Fixed width computation. +* Improved width computation + (`#2033 `_). For example: + + .. code:: c++ + + #include + + int main() { + fmt::print("{:-<10}{}\n", "你好", "世界"); + fmt::print("{:-<10}{}\n", "hello", "world"); + } + + prints + + .. image:: https://user-images.githubusercontent.com/576385/ + 119840373-cea3ca80-beb9-11eb-91e0-54266c48e181.png * The experimental fast output stream (``fmt::ostream``) is now truncated by default for consistency with ``fopen``. For example: @@ -138,6 +169,9 @@ * Fixed writing to ``stdout`` when it is redirected to ``NUL`` on Windows (`#2080 `_). +* Fixed exception propagation from iterators + (`#2097 `_). + * Added ``fmt/args.h`` to the install target. * Added the ``FMT_MASTER_PROJECT`` CMake option to control build and install @@ -145,6 +179,10 @@ (`#2100 `_). Thanks `@randomizedthinking `_. +* Improved build configuration + (`#2122 `_). + Thanks `@ibaned (Dan Ibanez) `_. + * Fixed various warnings and compilation issues (`#2038 `_, `#2039 `_, @@ -156,13 +194,18 @@ `#2068 `_, `#2073 `_, `#2106 `_, - `#2107 `_). + `#2107 `_, + `#2117 `_, + `#2119 `_, + `#2128 `_). Thanks `@yeswalrus (Walter Gray) `_, `@Finkman `_, `@HazardyKnusperkeks (Björn Schäpers) `_, `@dkavolis (Daumantas Kavolis) `_ `@concatime (Issam Maghni) `_, - `@chronoxor (Ivan Shynkarenka) `_. + `@chronoxor (Ivan Shynkarenka) `_, + `@summivox (Yin Zhong) `_, + `@yNeo `_. * Improved documentation (`#2051 `_, @@ -171,8 +214,9 @@ Thanks `@imba-tjd (谭九鼎) `_, `@0x416c69 (AlιAѕѕaѕѕιN) `_. -* Improved continuous integration - (`#2110 `_). +* Continuous integration and test improvements + (`#2110 `_, + `#2114 `_). Thanks `@alexezeder (Alexey Ochapov) `_. 7.1.3 - 2020-11-24 @@ -446,8 +490,8 @@ Thanks `@Naios (Denis Blank) `_. -* Made the ``#`` specifier emit trailing zeros in addition to the decimal point - (`#1797 `_). For example +* Made the ``'#'`` specifier emit trailing zeros in addition to the decimal + point (`#1797 `_). For example (`godbolt `__): .. code:: c++