| Summary: | SWT: Summary value containing line breaks do not show up with the whole text on tree nodes | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Oli Schmid <oliver.schmid> | ||||||||||
| Component: | Scout | Assignee: | Project Inbox <scout.core-inbox> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||
| Severity: | minor | ||||||||||||
| Priority: | P3 | CC: | Andreas.Hoegger, bruno.koeferli, stephan.leichtvogt, zimmermann | ||||||||||
| Version: | unspecified | Flags: | zimmermann:
indigo+
zimmermann: juno+ |
||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Oli Schmid
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
|