]> git.bitcoin.ninja Git - ldk-java/commitdiff
Replace unicode … with ... as java complains about non-ASCII docs
authorMatt Corallo <git@bluematt.me>
Wed, 1 Dec 2021 01:14:45 +0000 (01:14 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 2 Dec 2021 19:55:55 +0000 (19:55 +0000)
genbindings.py

index 247aecb3fa9ea48b26f24f1b298a849059786c97..640400ee3384e0a6e9673084786dc1763027edae 100755 (executable)
@@ -855,7 +855,7 @@ with open(sys.argv[1]) as in_h, open(f"{sys.argv[2]}/bindings{consts.file_ext}",
                             last_struct_block_comment = block_comment.strip("\n")
                             block_comment = None
                         else:
-                            block_comment = block_comment + "\n" + struct_line.strip(" /*")
+                            block_comment = block_comment + "\n" + struct_line.strip(" /*").replace("…", "...")
                     else:
                         struct_name_match = struct_name_regex.match(struct_line)
                         if struct_name_match is not None: