[ 
https://issues.apache.org/jira/browse/KARAF-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17745411#comment-17745411
 ] 

ASF subversion and git services commented on KARAF-7678:
--------------------------------------------------------

Commit bd812bd0f9aab0fd3e02b76a55837276a59ddd6a in karaf's branch 
refs/heads/karaf-4.3.x from Ciprian Ciubotariu
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=bd812bd0f9 ]

[KARAF-7678] Fix ShellTable multiline clipping

Account for multi-line cell contents when calculating cell width and
clipping the text to maxSize. The cell contents might be either wrapped
or originally split by the caller with \n characters

(cherry picked from commit 78222c0ae567b5b504327cbce8cbabd0904e6edf)


> ShellTable erroneously clips out text from multi-line column contents
> ---------------------------------------------------------------------
>
>                 Key: KARAF-7678
>                 URL: https://issues.apache.org/jira/browse/KARAF-7678
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.4.3
>            Reporter: Ciprian Ciubotariu
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> The {{ShellTable}} implementation clips column contents to the column's 
> {{maxSize}} before inspecting if the contents is sigle or multi-line. This 
> idea works well with single-line row contents, but it is faulty if the column 
> text contains newlines.
> Given that the newline split is already implemented for the text wrapping 
> function, there is an opportunity for the user to pass multi-line table 
> contents.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to