mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
OP-910: fix line endings and whitespaces (didn't work on Linux)
This commit is contained in:
parent
6756f52044
commit
a7d1e2b298
9
ground/.gitattributes
vendored
9
ground/.gitattributes
vendored
@ -3,6 +3,9 @@
|
|||||||
# http://wiki.openpilot.org/display/Doc/Coding+Style
|
# http://wiki.openpilot.org/display/Doc/Coding+Style
|
||||||
#
|
#
|
||||||
|
|
||||||
|
*.pri text eol=crlf
|
||||||
|
*.pro text eol=crlf
|
||||||
|
|
||||||
*.c text eol=crlf
|
*.c text eol=crlf
|
||||||
*.cpp text eol=crlf
|
*.cpp text eol=crlf
|
||||||
*.h text eol=crlf
|
*.h text eol=crlf
|
||||||
@ -13,9 +16,9 @@
|
|||||||
*.qml text eol=crlf
|
*.qml text eol=crlf
|
||||||
*.pluginspec text eol=crlf
|
*.pluginspec text eol=crlf
|
||||||
|
|
||||||
*.pri text eol=crlf
|
|
||||||
*.pro text eol=crlf
|
|
||||||
|
|
||||||
*.h.template text eol=crlf
|
*.h.template text eol=crlf
|
||||||
*.c.template text eol=crlf
|
*.c.template text eol=crlf
|
||||||
*.cpp.template text eol=crlf
|
*.cpp.template text eol=crlf
|
||||||
|
*.qml.template text eol=crlf
|
||||||
|
|
||||||
|
*.py text eol=lf
|
||||||
|
@ -26,7 +26,7 @@ def create_qml_file(args):
|
|||||||
|
|
||||||
with open(args.template, "rt") as template_file, open(args.outfile, "wt") as output_file:
|
with open(args.template, "rt") as template_file, open(args.outfile, "wt") as output_file:
|
||||||
template = template_file.read()
|
template = template_file.read()
|
||||||
output_file.write(template.replace("${LIST_ELEMENTS}\n", names_list))
|
output_file.write(template.replace("${LIST_ELEMENTS}", names_list.rstrip()))
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user