[llvm] r333034 - [Coverage] Update CSS to make HTML reports copy-paste friendly.
Max Moroz via llvm-commits
llvm-commits at lists.llvm.org
Tue May 22 15:40:14 PDT 2018
Author: dor1s
Date: Tue May 22 15:40:14 2018
New Revision: 333034
URL: http://llvm.org/viewvc/llvm-project?rev=333034&view=rev
Log:
[Coverage] Update CSS to make HTML reports copy-paste friendly.
Summary:
This minor change allows to copy snippets from HTML reports so they
will be pasted in the following format:
%LineNumber%\t%HitCount%\t%CodeLine%
rather then being split onto multiple lines. To see this in action, try copy
pasting from https://chromium-coverage.appspot.com/reports/560344/linux/chromium/src/third_party/zlib/compress.c.html
Requested in https://bugs.chromium.org/p/chromium/issues/detail?id=845571
Reviewers: vsk
Reviewed By: vsk
Subscribers: llvm-commits, morehouse, kcc
Differential Revision: https://reviews.llvm.org/D47231
Modified:
llvm/trunk/tools/llvm-cov/SourceCoverageViewHTML.cpp
Modified: llvm/trunk/tools/llvm-cov/SourceCoverageViewHTML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/SourceCoverageViewHTML.cpp?rev=333034&r1=333033&r2=333034&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/SourceCoverageViewHTML.cpp (original)
+++ llvm/trunk/tools/llvm-cov/SourceCoverageViewHTML.cpp Tue May 22 15:40:14 2018
@@ -205,6 +205,9 @@ th, td {
border-left: solid 1px #eee;
text-align: left;
}
+td pre {
+ display: inline-block;
+}
td:first-child {
border-left: none;
}
More information about the llvm-commits
mailing list