[
https://issues.apache.org/jira/browse/KARAF-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17699867#comment-17699867
]
Ciprian Ciubotariu commented on KARAF-7678:
-------------------------------------------
An example of the faulty situation: have a table with 1 column with
{{{}maxSize=15{}}}, and add the contents {{{}"10charword\n10charword"{}}}. This
should cause the table to have 2 rows, each containing the word
{{{}10charword{}}}. The previous implementation would cut the original string
to length 15, leading to contents {{{}"10charword\n10ch"{}}}, even if after
wrapping the column's {{maxSize}} would have been respected.
> 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
> 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)