--- a/tool/run/plugins/spdx/show.java
+++ b/tool/run/plugins/spdx/show.java
@@ -119,6 +119,17 @@
+ "No licenses declared";
}
+
+ // handle the number of documents
+ String documentText = "";
+ if(core.products.size() == 1){
+ documentText = "1 document" + html.br;
+ }
+ if(core.products.size() > 1){
+ documentText = core.products.size() + " documents" + html.br;
+ }
+
+
String summary =
"<h2>"
+ "SPDX summary"
@@ -126,9 +137,7 @@
+ html._div
+ html.div(20)
+ warnings
- //+ html.getCommonFolderIcon("documents-stack.png")
- + core.products.size() + " documents"
- + html.br
+ + documentText
//+ " containing "
//+ html.getCommonFolderIcon("calculator.png")
+ counterLicensesDeclared + " files with declared licenses"