From ef2927b12c84db222e1fae380162c4780fcb1261 Mon Sep 17 00:00:00 2001 From: Alexandre Deckner Date: Sun, 1 Nov 2009 18:13:29 +0000 Subject: [PATCH] * Use for the highlights git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33859 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/checkstyle/utils.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tools/checkstyle/utils.py b/src/tools/checkstyle/utils.py index 2f57457233..8df1527add 100644 --- a/src/tools/checkstyle/utils.py +++ b/src/tools/checkstyle/utils.py @@ -42,13 +42,13 @@ def renderHtml(text, highlights, sourceFileName, outputFileName): count = 0 for slice in splittedText: if count % 2 == 0: - temp += escape(slice) + '' + temp += escape(slice) + '' else: temp += escape(slice) + "" + highlights[(count - 1) / 2][2] \ - + "" + + "" count += 1 - temp += "" # close the superfluous last highlight + temp += "" # close the superfluous last highlight count = 1 for line in temp.split('\n'): @@ -131,7 +131,7 @@ def checkHighlights(highlights): def cssStyle(): return """ - highlight { + .highlight { background: #ffff00; color: #000000; } @@ -140,18 +140,18 @@ def cssStyle(): font-family: monospace; } - highlight.tooltip em { + .tooltip em { display:none; } - highlight.tooltip:hover { + .tooltip:hover { border: 0; position: relative; z-index: 500; text-decoration:none; } - highlight.tooltip:hover em { + .tooltip:hover em { font-style: normal; display: block; position: absolute;