Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 19ca598

Browse files
authored
Merge pull request #77 from luzhongyang/feature/issue/319
fix pdf report bug
2 parents 71f9cde + 8c17bb3 commit 19ca598

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

templates/pdf.html

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% load i18n %}
21
<!DOCTYPE html>
32
<html>
43
<head>
@@ -86,9 +85,7 @@
8685
}
8786

8887
.tablelist tr td, .tablelist tr th {
89-
overflow: hidden;
90-
text-overflow: ellipsis;
91-
white-space: nowrap;
88+
9289
}
9390

9491
table.tablelist {font-family: verdana,arial,sans-serif;color:#333333;border-width: 1px;border-color: #666666;border-collapse: collapse;}
@@ -421,7 +418,7 @@ <h2 align="center">{{ project.name }}</h2>
421418

422419
<p class="center_font"> {{ time_str }}</p>
423420
<p class="center_font">{{ i18n.security_testing_report }}</p>
424-
<div style="margin: 0px 20px;">
421+
<div style="margin: 0px 20px;max-width:1180px">
425422
<h2 style="page-break-before: always;margin-top: 0px">{{ i18n.first_project_information }}</h2>
426423
<table class="tablelist" style="width: 100%" cellspacing="0">
427424
<tbody>
@@ -444,7 +441,7 @@ <h2 style="page-break-before: always;margin-top: 0px">{{ i18n.first_project_info
444441
</tbody>
445442
</table>
446443

447-
<h2 style="margin-top: 0px">{{ i18n.second_the_result_analysis }}</h2>
444+
<h2 style="margin-top: 12px">{{ i18n.second_the_result_analysis }}</h2>
448445
<h3>2.1 {{ i18n.vulnerability_severity_levels_distribution }}</h3>
449446
<p class="text">
450447
{{ levelCountStr }}
@@ -453,8 +450,8 @@ <h3>2.2 {{ i18n.distribution_of_vulnerability }}</h3>
453450

454451
<table class="tablelist" style="width: 100%" cellspacing="0">
455452
<tbody>
456-
<tr class="tale-item table-item-td">
457-
<th class="left" style="text-align: left;width: 60%">{{ i18n.severity_levels }}</th>
453+
<tr class="tale-item table-item-td" style="width:100px">
454+
<th class="left" style="text-align: left;width: 100px">{{ i18n.severity_levels }}</th>
458455
<th class="right" style="width: 20%">{{ i18n.vulnerability_type_name }}</th>
459456
<th class="right" style="width: 20%">{{ i18n.number }}</th>
460457
</tr>
@@ -474,9 +471,9 @@ <h3>2.3 {{ i18n.vulnerability_details }}</h3>
474471
<h4>{{ vulTypeDetail.title }}</h4>
475472

476473
{% for oneVul in vulTypeDetail.vuls %}
477-
<p>{{ oneVul.title }}</p>
474+
<p style="font-size:18px">{{ oneVul.title }}</p>
478475
<br/>
479-
<p style="font-weight:bold;font-style:italic">{{ oneVul.summary }}</p>
476+
<p style="font-style:italic;font-size:16px">{{ oneVul.summary }}</p>
480477
<br/>
481478
<!--漏洞列表图start-->
482479
<table class="tablelist" style="width: 100%" cellspacing="0">
@@ -508,9 +505,9 @@ <h4>{{ vulTypeDetail.title }}</h4>
508505
</tbody>
509506
</table>
510507
<br/>
511-
<p style="font-weight:bold;font-style:italic">{{oneVul.description}}</p>
508+
<p style="font-style:italic">{{oneVul.description}}</p>
512509
<br/>
513-
<p>
510+
<p style="line-height:20px">
514511
{{oneVul.detail}}
515512
</p>
516513
<br/>

0 commit comments

Comments
 (0)