summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2017-12-05 13:09:27 +0100
committerJuergen Borleis <jbe@pengutronix.de>2017-12-05 15:06:01 +0100
commit7d910cad88ccfc8011dffd3aad9e71fdc03d5572 (patch)
tree6de349449b333c0460294da93d9a7b6c8fdcb5c6
parent53250f692ef338154b6df304dd28b5cb3e86dde4 (diff)
downloadptxdist-7d910cad88ccfc8011dffd3aad9e71fdc03d5572.tar.gz
ptxdist-7d910cad88ccfc8011dffd3aad9e71fdc03d5572.tar.xz
License Report: try to break the line after every third word
Since the license definitions doesn't longer use the comma as the separator the package dependency boxes are very wide and look strange. Adding a newline after each third word gets back nearly to the previous behavior and look. Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_license_report.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_license_report.awk b/scripts/lib/ptxd_make_license_report.awk
index a1320abe7..b58795414 100644
--- a/scripts/lib/ptxd_make_license_report.awk
+++ b/scripts/lib/ptxd_make_license_report.awk
@@ -20,8 +20,8 @@ $1 == "DEP" {
}
$1 == "LICENSE" {
- # add newline after each second license
- gsub("[^,]*,[^,]*,", "&\\\\ ", $4);
+ # add newline after each third word
+ gsub("[^ ]* [^ ]* [^ ]* ", "&\\n", $4);
gsub("_", "\\_", $4);
licenses[$2] = $4
raw_names[$2] = $3