Commit 71abefe6 authored by Julien Muchembled's avatar Julien Muchembled

fixup! UI: by default, preserve white-space in description column of listboxes

Commit dc00a308 removed link on the cell.
parent f65d602d
......@@ -12,6 +12,7 @@
<list>
<string>css_class</string>
<string>default</string>
<string>editable</string>
<string>title</string>
</list>
</value>
......@@ -95,6 +96,10 @@
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value>
......@@ -127,7 +132,7 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
python: (lambda x, y: x[:y-1] + [x[y-1]+"[...]"] if y < len(x) else x)(cell.getDescription().splitlines(), 5)
python: (lambda x, y: "\\n".join(x[:y-1] + [x[y-1]+"[...]"] if y < len(x) else x))(cell.getDescription().splitlines(), 5)
]]></string> </value>
</item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment