mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Apply a typo fix retroactively
This commit is contained in:
parent
adbed11ed4
commit
a99fbe67b9
@ -137,7 +137,7 @@ def update_site(env):
|
|||||||
if not os.path.exists(contents):
|
if not os.path.exists(contents):
|
||||||
os.rename(os.path.join(target_doc_dir, 'index.rst'), contents)
|
os.rename(os.path.join(target_doc_dir, 'index.rst'), contents)
|
||||||
# Fix issues in reference.rst/api.rst.
|
# Fix issues in reference.rst/api.rst.
|
||||||
for filename in ['reference.rst', 'api.rst']:
|
for filename in ['reference.rst', 'api.rst', 'index.rst']:
|
||||||
pattern = re.compile('doxygenfunction.. (bin|oct|hexu|hex)$', re.M)
|
pattern = re.compile('doxygenfunction.. (bin|oct|hexu|hex)$', re.M)
|
||||||
with rewrite(os.path.join(target_doc_dir, filename)) as b:
|
with rewrite(os.path.join(target_doc_dir, filename)) as b:
|
||||||
b.data = b.data.replace('std::ostream &', 'std::ostream&')
|
b.data = b.data.replace('std::ostream &', 'std::ostream&')
|
||||||
@ -146,6 +146,7 @@ def update_site(env):
|
|||||||
b.data = b.data.replace('unsigned int', 'unsigned')
|
b.data = b.data.replace('unsigned int', 'unsigned')
|
||||||
b.data = b.data.replace('operator""_', 'operator"" _')
|
b.data = b.data.replace('operator""_', 'operator"" _')
|
||||||
b.data = b.data.replace(', size_t', ', std::size_t')
|
b.data = b.data.replace(', size_t', ', std::size_t')
|
||||||
|
b.data = b.data.replace('aa long', 'a long')
|
||||||
# Fix a broken link in index.rst.
|
# Fix a broken link in index.rst.
|
||||||
index = os.path.join(target_doc_dir, 'index.rst')
|
index = os.path.join(target_doc_dir, 'index.rst')
|
||||||
with rewrite(index) as b:
|
with rewrite(index) as b:
|
||||||
|
Loading…
Reference in New Issue
Block a user