Skip to content

Commit ae6ec90

Browse files
committed
html-writer: improve readability of Scan Properties
... by preventing property names in the table from line wrapping.
1 parent 09fc49c commit ae6ec90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/html-writer.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ namespace CsLib {
179179
if (++i & 1)
180180
trStyle = " style='background-color: #EEE;'";
181181

182-
str << "<tr" << trStyle << "><td style='padding-right: 8px;'>"
182+
const char *tdStyle0 = "padding-right: 8px; white-space: nowrap;";
183+
str << "<tr" << trStyle << "><td style='" << tdStyle0 << "'>"
183184
<< item.first << "</td><td>" << item.second << "</td></tr>\n";
184185
}
185186

0 commit comments

Comments
 (0)