Skip to content

Commit

Permalink
Add whitespace trimming to version file
Browse files Browse the repository at this point in the history
  • Loading branch information
iBreakEverything authored Mar 3, 2025
1 parent 5008c7e commit bb88739
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ def main():
content = minify_js_html_template(content)
elif file.endswith(".css"):
content = minify_css(content)
elif file == 'version':
content = content.strip()

# Replace placeholder with content
script = script.replace(placeholder, content)

with open(RELEASE_FILE, 'w') as f:
f.write(script)

main()
main()

0 comments on commit bb88739

Please sign in to comment.