From ef0bb45774e3c70a993ef26127b40e0130e7697c Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Mon, 3 Jul 2017 14:53:22 -0400 Subject: [PATCH] 2778 list of thumbnails and long thumbnails now wrap text in HTML Report --- Core/src/org/sleuthkit/autopsy/report/ReportHTML.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java b/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java index 0ca661ab38..d7a4ee18bf 100644 --- a/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java +++ b/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java @@ -670,6 +670,7 @@ class ReportHTML implements TableReportModule { } StringBuilder linkToThumbnail = new StringBuilder(); + linkToThumbnail.append(""); currentRow.add(linkToThumbnail.toString()); totalCount++; @@ -844,7 +845,9 @@ class ReportHTML implements TableReportModule { + //NON-NLS "table td {white-space:nowrap; display: table-cell; padding: 2px 3px; font: 13px/20px Arial, Helvetica, sans-serif; min-width: 125px; overflow: auto; text-align:left; }\n" + //NON-NLS - "table tr:nth-child(even) td {background: #f3f3f3;}"; //NON-NLS + "table tr:nth-child(even) td {background: #f3f3f3;}\n" + + //NON-NLS + "div#thumbnail_link {max-width: 200px; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;}"; cssOut.write(css); } catch (FileNotFoundException ex) { logger.log(Level.SEVERE, "Could not find index.css file to write to.", ex); //NON-NLS