mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-10 05:10:05 +00:00
Update changelog
This commit is contained in:
parent
b9f2c27661
commit
7612f18dc8
@ -88,6 +88,9 @@
|
||||
|
||||
prints "0,42".
|
||||
|
||||
* Fixed handling of the ``'+'`` specifier in localized formatting
|
||||
(`#2133 <https://github.com/fmtlib/fmt/issues/2133>`_).
|
||||
|
||||
* Added support for the ``'s'`` format specifier that gives textual
|
||||
representation of ``bool``
|
||||
(`#2109 <https://github.com/fmtlib/fmt/pull/2109>`_). For example:
|
||||
@ -103,6 +106,19 @@
|
||||
prints "true".
|
||||
Thanks `@powercoderlol (Ivan Polyakov) <https://github.com/powercoderlol>`_.
|
||||
|
||||
* Made ``fmt::ptr`` work with function pointers
|
||||
(`#2131 <https://github.com/fmtlib/fmt/pull/2131>`_). For example:
|
||||
|
||||
.. code:: c++
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
int main() {
|
||||
fmt::print("my main: {}\n", fmt::ptr(main));
|
||||
}
|
||||
|
||||
Thanks `@mikecrowe (Mike Crowe) <https://github.com/mikecrowe>`_.
|
||||
|
||||
* Fixed handling of empty format strings during format string compilation
|
||||
(`#2042 <https://github.com/fmtlib/fmt/issues/2042>`_):
|
||||
|
||||
@ -115,7 +131,22 @@
|
||||
* Fixed handling of enums in ``fmt::to_string``
|
||||
(`#2036 <https://github.com/fmtlib/fmt/issues/2036>`_).
|
||||
|
||||
* Fixed width computation.
|
||||
* Improved width computation
|
||||
(`#2033 <https://github.com/fmtlib/fmt/issues/2033>`_). For example:
|
||||
|
||||
.. code:: c++
|
||||
|
||||
#include <fmt/core.h>
|
||||
|
||||
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 <https://github.com/fmtlib/fmt/issues/2080>`_).
|
||||
|
||||
* Fixed exception propagation from iterators
|
||||
(`#2097 <https://github.com/fmtlib/fmt/issues/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 <https://github.com/fmtlib/fmt/pull/2100>`_).
|
||||
Thanks `@randomizedthinking <https://github.com/randomizedthinking>`_.
|
||||
|
||||
* Improved build configuration
|
||||
(`#2122 <https://github.com/fmtlib/fmt/pull/2122>`_).
|
||||
Thanks `@ibaned (Dan Ibanez) <https://github.com/ibaned>`_.
|
||||
|
||||
* Fixed various warnings and compilation issues
|
||||
(`#2038 <https://github.com/fmtlib/fmt/issues/2038>`_,
|
||||
`#2039 <https://github.com/fmtlib/fmt/issues/2039>`_,
|
||||
@ -156,13 +194,18 @@
|
||||
`#2068 <https://github.com/fmtlib/fmt/pull/2068>`_,
|
||||
`#2073 <https://github.com/fmtlib/fmt/pull/2073>`_,
|
||||
`#2106 <https://github.com/fmtlib/fmt/pull/2106>`_,
|
||||
`#2107 <https://github.com/fmtlib/fmt/pull/2107>`_).
|
||||
`#2107 <https://github.com/fmtlib/fmt/pull/2107>`_,
|
||||
`#2117 <https://github.com/fmtlib/fmt/pull/2117>`_,
|
||||
`#2119 <https://github.com/fmtlib/fmt/pull/2119>`_,
|
||||
`#2128 <https://github.com/fmtlib/fmt/pull/2128>`_).
|
||||
Thanks `@yeswalrus (Walter Gray) <https://github.com/yeswalrus>`_,
|
||||
`@Finkman <https://github.com/Finkman>`_,
|
||||
`@HazardyKnusperkeks (Björn Schäpers) <https://github.com/HazardyKnusperkeks>`_,
|
||||
`@dkavolis (Daumantas Kavolis) <https://github.com/dkavolis>`_
|
||||
`@concatime (Issam Maghni) <https://github.com/concatime>`_,
|
||||
`@chronoxor (Ivan Shynkarenka) <https://github.com/chronoxor>`_.
|
||||
`@chronoxor (Ivan Shynkarenka) <https://github.com/chronoxor>`_,
|
||||
`@summivox (Yin Zhong) <https://github.com/summivox>`_,
|
||||
`@yNeo <https://github.com/yNeo>`_.
|
||||
|
||||
* Improved documentation
|
||||
(`#2051 <https://github.com/fmtlib/fmt/pull/2051>`_,
|
||||
@ -171,8 +214,9 @@
|
||||
Thanks `@imba-tjd (谭九鼎) <https://github.com/imba-tjd>`_,
|
||||
`@0x416c69 (AlιAѕѕaѕѕιN) <https://github.com/0x416c69>`_.
|
||||
|
||||
* Improved continuous integration
|
||||
(`#2110 <https://github.com/fmtlib/fmt/pull/2110>`_).
|
||||
* Continuous integration and test improvements
|
||||
(`#2110 <https://github.com/fmtlib/fmt/pull/2110>`_,
|
||||
`#2114 <https://github.com/fmtlib/fmt/pull/2114>`_).
|
||||
Thanks `@alexezeder (Alexey Ochapov) <https://github.com/alexezeder>`_.
|
||||
|
||||
7.1.3 - 2020-11-24
|
||||
@ -446,8 +490,8 @@
|
||||
|
||||
Thanks `@Naios (Denis Blank) <https://github.com/Naios>`_.
|
||||
|
||||
* Made the ``#`` specifier emit trailing zeros in addition to the decimal point
|
||||
(`#1797 <https://github.com/fmtlib/fmt/issues/1797>`_). For example
|
||||
* Made the ``'#'`` specifier emit trailing zeros in addition to the decimal
|
||||
point (`#1797 <https://github.com/fmtlib/fmt/issues/1797>`_). For example
|
||||
(`godbolt <https://godbolt.org/z/bhdcW9>`__):
|
||||
|
||||
.. code:: c++
|
||||
|
Loading…
Reference in New Issue
Block a user