fix return output when using variablename
This commit is contained in:
parent
05a15772d7
commit
190b67b17a
|
@ -57,6 +57,9 @@ elif args.format=='nodered': #Nodered Binary
|
||||||
output_col_preR=""
|
output_col_preR=""
|
||||||
output_col_write_binary_flag=True
|
output_col_write_binary_flag=True
|
||||||
output_col_post="\\\n"
|
output_col_post="\\\n"
|
||||||
|
if (args.variablename):
|
||||||
|
output_post="\";"
|
||||||
|
else:
|
||||||
output_post="\";\nreturn msg;"
|
output_post="\";\nreturn msg;"
|
||||||
elif args.format=='nodered_int': #Nodered Int
|
elif args.format=='nodered_int': #Nodered Int
|
||||||
output_pre=variablename+"=\"\\\n"
|
output_pre=variablename+"=\"\\\n"
|
||||||
|
@ -65,6 +68,9 @@ elif args.format=='nodered_int': #Nodered Int
|
||||||
output_col_preR=""
|
output_col_preR=""
|
||||||
output_col_write_int_flag=True
|
output_col_write_int_flag=True
|
||||||
output_col_post=","
|
output_col_post=","
|
||||||
|
if (args.variablename):
|
||||||
|
output_post="\";"
|
||||||
|
else:
|
||||||
output_post="\";\nreturn msg;"
|
output_post="\";\nreturn msg;"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue