From 158fef49e1ff23c4fe660f6b88b915866e6464da Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Tue, 30 Apr 2019 13:36:51 +0800 Subject: [PATCH] fix: dev: org export --- buku | 2 +- tests/test_buku.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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], ])