Convert GtkComboBox items propertly

If the last character is a newline, just ignore it.
This is what glade normally writes, fixes #578276.
This commit is contained in:
Johan Dahlin 2009-04-07 18:04:05 -03:00
parent 4ecd6a0f89
commit fbe7ba55ce

View File

@ -560,6 +560,8 @@ class GtkBuilderConverter(object):
data = self._dom.createElement('data')
model.appendChild(data)
if value.endswith('\n'):
value = value[:-1]
for item in value.split('\n'):
row = self._dom.createElement('row')
data.appendChild(row)