[PATCH] D47231: [Coverage] Update CSS to make HTML reports copy-paste friendly.

Max Moroz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 14:54:54 PDT 2018


Dor1s created this revision.
Dor1s added a reviewer: vsk.
Herald added a subscriber: llvm-commits.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D47231

Files:
  tools/llvm-cov/SourceCoverageViewHTML.cpp


Index: tools/llvm-cov/SourceCoverageViewHTML.cpp
===================================================================
--- tools/llvm-cov/SourceCoverageViewHTML.cpp
+++ tools/llvm-cov/SourceCoverageViewHTML.cpp
@@ -205,6 +205,9 @@
   border-left: solid 1px #eee;
   text-align: left;
 }
+td pre {
+  display: inline-block;
+}
 td:first-child {
   border-left: none;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47231.148109.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180522/0c32eb38/attachment.bin>


More information about the llvm-commits mailing list