fix: dev: org export
This commit is contained in:
parent
f98f5fdac0
commit
158fef49e1
2
buku
2
buku
@ -2791,7 +2791,7 @@ def convert_bookmark_set(
|
||||
count += 1
|
||||
elif export_type == 'org':
|
||||
for row in resultset:
|
||||
if row[2]:
|
||||
if not row[2]:
|
||||
out += '* [[{}][Untitled]]\n'.format(row[1])
|
||||
else:
|
||||
out += '* [[{}][{}]]\n'.format(row[1], row[2])
|
||||
|
@ -742,7 +742,7 @@ def test_copy_to_clipboard(platform, params):
|
||||
' <DT><A HREF="http://google.com" ADD_DATE="1556430615" LAST_MODIFIED="1556430615">Google</A>\n'
|
||||
' </DL><p>\n</DL><p>'
|
||||
],
|
||||
['org', '* [[htttp://example.com][]]\n* [[htttp://example.org][None]]\n* [[http://google.com][Untitled]]\n'],
|
||||
['org', '* [[htttp://example.com][Untitled]]\n* [[htttp://example.org][Untitled]]\n* [[http://google.com][Google]]\n'],
|
||||
['markdown', '- [Untitled](htttp://example.com)\n- [Untitled](htttp://example.org)\n- [Google](http://google.com)\n'],
|
||||
['random', None],
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user