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
|
count += 1
|
||||||
elif export_type == 'org':
|
elif export_type == 'org':
|
||||||
for row in resultset:
|
for row in resultset:
|
||||||
if row[2]:
|
if not row[2]:
|
||||||
out += '* [[{}][Untitled]]\n'.format(row[1])
|
out += '* [[{}][Untitled]]\n'.format(row[1])
|
||||||
else:
|
else:
|
||||||
out += '* [[{}][{}]]\n'.format(row[1], row[2])
|
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'
|
' <DT><A HREF="http://google.com" ADD_DATE="1556430615" LAST_MODIFIED="1556430615">Google</A>\n'
|
||||||
' </DL><p>\n</DL><p>'
|
' </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'],
|
['markdown', '- [Untitled](htttp://example.com)\n- [Untitled](htttp://example.org)\n- [Google](http://google.com)\n'],
|
||||||
['random', None],
|
['random', None],
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user