|
@ -407,10 +407,8 @@ async def handle_pad(args, padid, data, info, session): |
|
|
links=links, |
|
|
links=links, |
|
|
) |
|
|
) |
|
|
async with await trio.open_file(ver["path"], "w") as f: |
|
|
async with await trio.open_file(ver["path"], "w") as f: |
|
|
print( |
|
|
output = ET.tostring(doc, method="html", encoding="unicode") |
|
|
ET.tostring(doc, method="html", encoding="unicode"), |
|
|
await f.write(output) |
|
|
file=f, |
|
|
|
|
|
) |
|
|
|
|
|
except TypeError: |
|
|
except TypeError: |
|
|
ver["message"] = html["message"] |
|
|
ver["message"] = html["message"] |
|
|
|
|
|
|
|
@ -432,9 +430,8 @@ async def handle_pad(args, padid, data, info, session): |
|
|
doc, indent=True, title=padid, scripts=args.script, links=links, |
|
|
doc, indent=True, title=padid, scripts=args.script, links=links, |
|
|
) |
|
|
) |
|
|
async with await trio.open_file(ver["path"], "w") as f: |
|
|
async with await trio.open_file(ver["path"], "w") as f: |
|
|
print( |
|
|
output = ET.tostring(doc, method="html", encoding="unicode") |
|
|
ET.tostring(doc, method="html", encoding="unicode"), file=f, |
|
|
await f.write(output) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
# output meta |
|
|
# output meta |
|
|
if args.all or args.meta: |
|
|
if args.all or args.meta: |
|
|