Skip to content

Commit fdc717c

Browse files
committed
htmlreport: remove black background, make the report a bit more space efficient.
1 parent 275e250 commit fdc717c

1 file changed

Lines changed: 15 additions & 23 deletions

File tree

htmlreport/cppcheck-htmlreport

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ with syntax highlighted source code.
2121

2222
STYLE_FILE = """
2323
body {
24-
background-color: black;
2524
font: 13px Arial, Verdana, Sans-Serif;
2625
margin: 0;
27-
padding: 0;
26+
width: auto;
27+
}
28+
29+
h1 {
30+
margin: 10px;
31+
}
32+
33+
#footer > p {
34+
margin: 4px;
2835
}
2936
3037
.error {
@@ -42,18 +49,6 @@ body {
4249
padding: 1px;
4350
}
4451
45-
#page {
46-
background-color: white;
47-
border: 2px solid #aaa;
48-
-webkit-box-sizing: content-box;
49-
-moz-box-sizing: content-box;
50-
box-sizing: content-box;
51-
margin: 10px;
52-
overflow: auto;
53-
padding: 5px 10px;
54-
width: auto;
55-
}
56-
5752
#header {
5853
border-bottom: thin solid #aaa;
5954
}
@@ -127,7 +122,6 @@ HTML_HEAD = """
127122
</style>
128123
</head>
129124
<body>
130-
<div id="page">
131125
<div id="header">
132126
<h1>Cppcheck report - %s: %s </h1>
133127
</div>
@@ -145,15 +139,13 @@ HTML_FOOTER = """
145139
</div>
146140
<div id="footer">
147141
<p>
148-
Cppcheck %s - a tool for static C/C++ code analysis
149-
</p>
150-
<ul>
151-
<li>Internet: <a href="http://cppcheck.sourceforge.net">http://cppcheck.sourceforge.net</a></li>
152-
<li>Forum: <a href="http://apps.sourceforge.net/phpbb/cppcheck/">http://apps.sourceforge.net/phpbb/cppcheck/</a></li>
153-
<li>IRC: <a href="irc://irc.freenode.net/cppcheck">irc://irc.freenode.net/cppcheck</a></li>
154-
</ul>
142+
Cppcheck %s - a tool for static C/C++ code analysis</br>
143+
</br>
144+
Internet: <a href="http://cppcheck.sourceforge.net">http://cppcheck.sourceforge.net</a></br>
145+
Forum: <a href="http://apps.sourceforge.net/phpbb/cppcheck/">http://apps.sourceforge.net/phpbb/cppcheck/</a></br>
146+
IRC: <a href="irc://irc.freenode.net/cppcheck">irc://irc.freenode.net/cppcheck</a></br>
147+
<p>
155148
</div>
156-
</div>
157149
</body>
158150
</html>
159151
"""

0 commit comments

Comments
 (0)