Hi everybody.
First of all, thanks Jaap for the new zim release.
I ran into a kind of bug that forbid to display the content of a page.
Here's the traceback :
This is zim 0.57
Python version is sys.version_info(major=2, minor=7, micro=3,
releaselevel='final', serial=0)
Gtk version is (2, 24, 11)
Pygtk version is (2, 24, 0)
Platform is posix
No bzr version-info found
=== Traceback ===
File /[PATH]/zim/zim/gui/pageview.py, line 4649, in set_page
self.set_parsetree(tree, bool(template))
File /[PATH]/zim/zim/gui/pageview.py, line 4740, in set_parsetree
buffer.set_parsetree(tree)
File /[PATH]/zim/zim/gui/pageview.py, line 603, in set_parsetree
self.insert_parsetree_at_cursor(tree)
File /[PATH]/zim/zim/gui/pageview.py, line 670, in
insert_parsetree_at_cursor
self._insert_element_children(root, raw=raw)
File /[PATH]/zim/zim/gui/pageview.py, line 743, in
_insert_element_children
self._insert_element_children(element, list_level=list_level,
raw=raw) # recurs
File /[PATH]/zim/zim/gui/pageview.py, line 784, in
_insert_element_children
self.insert_link_at_cursor(element.text, **element.attrib)
File /[PATH]/zim/zim/gui/pageview.py, line 841, in
insert_link_at_cursor
self.insert_at_cursor(text)
TypeError: GtkTextBuffer.insert_at_cursor() argument 1 must be string
or read-only buffer, not None
The reason for this bug is simple : I had some wiki formatted links
without url in this page, i.e things like `[[unison|]]`.
And it was my fault : i copied some text from an email with those wiki
links without urls.
Removing the broken links resolved the problem.
So, i think we can't call that a bug since it's not Zim that
produced those broken links. I just wanted to inform zim users if they
face this kind of behavior.
And, Jaap, if you want, i can fill a bug on Launchpad for that.
Regards,
--
Rui Nibau
http://omacronides.com
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help : https://help.launchpad.net/ListHelp