Skip to content

Commit bd40850

Browse files
committed
add newline at correct place
1 parent f6c25d9 commit bd40850

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gguf-py/gguf/metadata.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,10 @@ def load_model_card(model_path: Optional[Path] = None) -> dict[str, Any]:
139139
break # End of frontmatter
140140
else:
141141
lines_yaml.append(line)
142-
yaml_content = "\n".join(lines_yaml)
142+
yaml_content = "\n".join(lines_yaml) + "\n"
143143

144144
# Quick hack to fix the Norway problem
145145
# https://hitchdev.com/strictyaml/why/implicit-typing-removed/
146-
yaml_content += "\n"
147146
yaml_content = yaml_content.replace("- no\n", "- \"no\"\n")
148147

149148
if yaml_content:

0 commit comments

Comments
 (0)