We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aacfe2 commit 461c7afCopy full SHA for 461c7af
generate_templates.py
@@ -8,6 +8,7 @@ def encode_file_to_base64(file_path):
8
"""Encode the content of a file to a Base64 string."""
9
with open(file_path, 'rb') as file:
10
file_content = file.read()
11
+ file_content = file_content.replace(b'\r\n', b'\n').replace(b'\r', b'\n')
12
encoded_content = base64.b64encode(file_content).decode('utf-8')
13
return encoded_content
14
0 commit comments