Community
Participate
Working Groups
When using a multiline text to show up on the treenode only the first line is shown. Multiline texts should show up as one single line with linebreaks replaced by a space character. Reproducible: Always Steps to Reproduce: 1. Create a tablepage containing a table with defining at least one column of type AbstractStringColumn with the property summary set to true 2. Asign a multiline text to the column 3. Navigate to the node in the SWT GUI
Created attachment 200013 [details] Patch is returning a single line string in getText methode on a SWTTreeNode
patch applied on trunk and indigo RC1. Thank you Oliver.
Oli's patch does not completly replace linebreaks, f.e. "\r\n" (Windows style) on tree nodes will still be displayed incorrectly - not on a single line. Therefore I provided a new patch which also will replace "\r\n" by a single blank. Additionally this patch ensures that strings containing linebreaks will be displayed identical even the text is displayed as tree node, table cell or as title of a view, editor or dialog. By now the "\n" char will only be replaced in table cells. On view, editor or dialog titles the linebreaks will be removed by SWT itself, but without adding a blank.
Created attachment 200899 [details] Completely replace linebreaks see my comment for more details
reopen bug for Bruno's patch.
Changed the patch to replace only newline ('\r\n', '\n\r', '\n', '\r') with a space. Sequences of spaces are not replaced by a single space. Thank you Bruno.
If the string entered is an empty string "" then null is returned. That is obviously wrong.
Corrected this in trunk and indigo RC1. If entered string is null or empty the same string is returned.
Problems when using indentation in tables. Indentations are removed (trimed). Replacing line breaks is not the same as trimming.
Created attachment 201313 [details] removed trimming of returned value
Created attachment 201314 [details] removed trimming of returned value
patch applied in trunk and indigo RC1. Entered string will not be trimmed.
shipped with scout 3.7.1
Comment on attachment 200899 [details] Completely replace linebreaks moved iplog flag to patch
Comment on attachment 201314 [details] removed trimming of returned value moved iplog flag to patch