[Buildroot] [PATCH 1/1] support/scripts/pkg-stats: add linebreak opportunity in CPE ID

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Aug 3 16:20:22 UTC 2022


On Wed,  3 Aug 2022 10:33:24 -0500
Sen Hastings <sen at phobosdpl.com> wrote:

> This adds an optional linebreak at the vendor attribute in the CPE ID.
> 
> It should be noted this is purely for formatting/layout purposes
> and does not actually insert any additional characters
> (newline or otherwise) into the rendered text.
> 
> This means that even though the text renders across two lines,
> copy-pasting will still yield one line of text.
> 
> example: https://sen-h.github.io/pkg-stats/c245575.html
> 
> see also: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr
> 
> Signed-off-by: Sen Hastings <sen at phobosdpl.com>
> ---
>  support/scripts/pkg-stats | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied to master, thanks.

I had initially thought we would add a <wbr> at every : separator in
the CPE ID. Your choice to add only one after the 4th field makes the
code slightly more complex, but probably avoids wrapping occurring at
too many different locations. So I've applied as-is, we can always
revisit/improve if needed later.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list