mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
refactor(yaml): run code formatter
This commit is contained in:
parent
79b48a3730
commit
0153af8283
19 changed files with 70 additions and 58 deletions
|
@ -45,7 +45,8 @@ for filename in Path(I18N_PATH).glob("*.yaml"):
|
|||
|
||||
# Write the synced language pack to file.
|
||||
with open(i18n_file, 'w') as f:
|
||||
yaml.dump(tmp_map, f, allow_unicode=True, width=float("inf")) # PyYAML will break lines unless a large column width is set.
|
||||
# PyYAML will break lines unless a large column `width` is set.
|
||||
yaml.dump(tmp_map, f, allow_unicode=True, width=float("inf"), default_style='\'')
|
||||
cnt += 1
|
||||
|
||||
# Print results.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue