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 @@ ...@@ -12,6 +12,7 @@
<list> <list>
<string>css_class</string> <string>css_class</string>
<string>default</string> <string>default</string>
<string>editable</string>
<string>title</string> <string>title</string>
</list> </list>
</value> </value>
...@@ -95,6 +96,10 @@ ...@@ -95,6 +96,10 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value> <value> <string>my_string_field</string> </value>
...@@ -127,7 +132,7 @@ ...@@ -127,7 +132,7 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <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> ]]></string> </value>
</item> </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