Fix whitespace errors with word diff enabled

Whitespace errors weren't being displayed if they occurred within
a region that was highlighted for word difference on a line, due to
the word difference HTML code preventing the patterns from matching.

Bug: issue 445
Change-Id: If4f32352aa43d7517fe7cd3f20aa8982360800a0
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-02-13 12:31:14 -08:00
parent e240de1293
commit 6caaa60a2d
2 changed files with 20 additions and 8 deletions

View File

@@ -26,13 +26,23 @@
border-left: 1px dotted red;
}
.wse .vt {
border-left: 2px dotted black;
}
.wdd {
background: #FAA;
}
.wdi {
background: #9F9;
}
/* Use special rules for special styles contained within a whitespace
* error. For these we want the whitespace error to take precedence
* so we have to override the contained style.
*/
.wse .vt {
border-left: 2px dotted black;
}
.wse .wdd {
background: red;
}
.wse .wdi {
background: red;
}