diff --git a/buku b/buku index 44c61ab..288def8 100755 --- a/buku +++ b/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]) diff --git a/tests/test_buku.py b/tests/test_buku.py index 9bbf207..419f784 100644 --- a/tests/test_buku.py +++ b/tests/test_buku.py @@ -742,7 +742,7 @@ def test_copy_to_clipboard(platform, params): '
Google\n' '

\n

' ], - ['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], ])