From a29a01d304328fc56baa5aa450458c4cd945c966 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 6 Jul 2020 09:50:24 -0700 Subject: [PATCH] Fix docs --- ChangeLog.rst | 2 +- support/manage.py | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index ab5f28c6..1b329394 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -126,7 +126,7 @@ ^ * Added sentinel support to ``fmt::join`` - (`#1689 `_)) + (`#1689 `_) .. code:: c++ diff --git a/support/manage.py b/support/manage.py index f88e984d..9f270669 100755 --- a/support/manage.py +++ b/support/manage.py @@ -145,14 +145,24 @@ def update_site(env): b.data = b.data.replace('std::FILE*', 'std::FILE *') b.data = b.data.replace('unsigned int', 'unsigned') #b.data = b.data.replace('operator""_', 'operator"" _') - if version.startswith('6.'): + b.data = b.data.replace( + 'format_to_n(OutputIt, size_t, string_view, Args&&', + 'format_to_n(OutputIt, size_t, const S&, const Args&') + b.data = b.data.replace( + 'format_to_n(OutputIt, std::size_t, string_view, Args&&', + 'format_to_n(OutputIt, std::size_t, const S&, const Args&') + if version == ('3.0.2'): + b.data = b.data.replace( + 'fprintf(std::ostream&', 'fprintf(std::ostream &') + if version == ('5.3.0'): + b.data = b.data.replace( + 'format_to(OutputIt, const S&, const Args&...)', + 'format_to(OutputIt, const S &, const Args &...)') + if version.startswith('5.') or version.startswith('6.'): b.data = b.data.replace(', size_t', ', std::size_t') - elif version.startswith('7.'): + if version.startswith('7.'): b.data = b.data.replace(', std::size_t', ', size_t') b.data = b.data.replace('join(It, It', 'join(It, Sentinel') - b.data = b.data.replace( - 'format_to_n(OutputIt, size_t, string_view, Args&&', - 'format_to_n(OutputIt, size_t, const S&, const Args&') b.data = b.data.replace('aa long', 'a long') b.data = b.data.replace('serveral', 'several') if version.startswith('6.2.'):