Closed szeming closed 10 years ago
So, the problem is not that line 205 is missing a closing tag, it's that line 205 should not exist at all.
A patch fixing this would merely remove that line.
In addition, I'd love to have a new unit test for the setup ui, to avoid this kind of problems in the future.
This seems to do the trick:
from gi.repository import Gtk
b = Gtk.Builder()
# Next line will raise an exception if the setup ui is invalid
b.add_from_file("/usr/share/ibus-cangjie/setup.ui")
Of course, it needs to be integrated properly with the rest of our unit tests, and the path must not be hardcoded like this. ;-)
With ibus-cangjie.noarch 2.0-1.fc20, running ibus-setup-cangjie cangjie returns the following error:
The error is caused by invalid xml.
In particular, line 205 is missing a closed tag. (bochecha indicate that line shouldn't exist at all)