X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=typescript_strings.py;fp=typescript_strings.py;h=542487bc463fca2ff6b3e945f5c58fcb6c535a75;hb=1668e21d15257d59a739a188a6e85d6e57f8f2cc;hp=82412e0147f191e9e187df7fe46ecb7b1b8e7a64;hpb=f2b5e41650239c71fae1b19725d7c134cd93f46f;p=ldk-java diff --git a/typescript_strings.py b/typescript_strings.py index 82412e01..542487bc 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -1056,9 +1056,9 @@ const decodeString = (stringPointer, free = true) => { elif info.from_hu_conv is not None and info.from_hu_conv[1] != "": if not takes_self and return_type_info.to_hu_conv_name is not None: out_java_struct += ( - "\t\t" + info.from_hu_conv[1].replace("this", return_type_info.to_hu_conv_name) + ";\n") + "\t\t" + info.from_hu_conv[1].replace("this", return_type_info.to_hu_conv_name).replace("\n", "\n\t\t") + ";\n") else: - out_java_struct += ("\t\t" + info.from_hu_conv[1] + ";\n") + out_java_struct += ("\t\t" + info.from_hu_conv[1].replace("\n", "\n\t\t") + ";\n") if return_type_info.to_hu_conv_name is not None: out_java_struct += ("\t\treturn " + return_type_info.to_hu_conv_name + ";\n")