diff options
Diffstat (limited to 'tools/file2h.py')
-rw-r--r-- | tools/file2h.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/file2h.py b/tools/file2h.py index fb5bd1a4b9..2a04ae22b9 100644 --- a/tools/file2h.py +++ b/tools/file2h.py @@ -10,7 +10,9 @@ from __future__ import print_function import sys # Can either be set explicitly, or left blank to auto-detect -line_end = '' +# Except auto-detect doesn't work because the file has been passed +# through Python text processing, which makes all EOL a \n +line_end = '\\r\\n' if __name__ == "__main__": filename = sys.argv[1] |