Expand ~ with :dump-page.
This commit is contained in:
parent
b37dac7bfa
commit
35de87f973
@ -20,6 +20,7 @@
|
||||
"""Command dispatcher for TabbedBrowser."""
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import shlex
|
||||
import posixpath
|
||||
import functools
|
||||
@ -1241,6 +1242,8 @@ class CommandDispatcher:
|
||||
else:
|
||||
data = mainframe.toHtml()
|
||||
|
||||
dest = os.path.expanduser(dest)
|
||||
|
||||
try:
|
||||
with open(dest, 'w', encoding='utf-8') as f:
|
||||
f.write(data)
|
||||
|
Loading…
Reference in New Issue
Block a user