LXM URI file output

This commit is contained in:
Mark Qvist 2023-10-15 22:53:56 +02:00
parent 37ad5cc5d3
commit 2322a254a8

View file

@ -259,7 +259,7 @@ class Conversation:
return qr_save_path return qr_save_path
elif mode == "save_uri": elif mode == "save_uri":
lxm_uri = lxm.as_uri() lxm_uri = lxm.as_uri()+"\n"
uri_save_path = self.app.downloads_path+"/LXM_"+str(RNS.hexrep(lxm.hash, delimit=False)+".txt") uri_save_path = self.app.downloads_path+"/LXM_"+str(RNS.hexrep(lxm.hash, delimit=False)+".txt")
with open(uri_save_path, "wb") as f: with open(uri_save_path, "wb") as f:
f.write(lxm_uri.encode("utf-8")) f.write(lxm_uri.encode("utf-8"))