aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Driver/HTMLDiagnostics.cpp3
-rw-r--r--lib/Rewrite/HTMLRewrite.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/Driver/HTMLDiagnostics.cpp b/Driver/HTMLDiagnostics.cpp
index d4b481bfda..69e77bc2fe 100644
--- a/Driver/HTMLDiagnostics.cpp
+++ b/Driver/HTMLDiagnostics.cpp
@@ -253,6 +253,9 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R,
os << "\" class=\"msg\" style=\"margin-left:"
<< PosNo << "ex\">";
+ if (max > 1)
+ os << "<span class=\"PathIndex\">[" << num << "]</span> ";
+
os << html::EscapeText(P.getString()) << "</div></td></tr>";
// Insert the new html.
diff --git a/lib/Rewrite/HTMLRewrite.cpp b/lib/Rewrite/HTMLRewrite.cpp
index f63b8e4056..f6d0d23517 100644
--- a/lib/Rewrite/HTMLRewrite.cpp
+++ b/lib/Rewrite/HTMLRewrite.cpp
@@ -188,6 +188,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) {
<< " .msg { margin-top:10px; margin-bottom:10px }\n"
<< " .mrange { background-color:#ffcc66 }\n"
<< " .mrange { border-bottom: 1px solid #ff8000 }\n"
+ << " .PathIndex { font-weight: bold }\n"
<< "</style>\n</head>\n<body>";
R.InsertStrBefore(StartLoc, os.str());