Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search result background color for odd rows fix #2083

Merged
merged 1 commit into from
Apr 30, 2018

Conversation

ahornace
Copy link
Contributor

@ahornace ahornace commented Apr 25, 2018

fixes #2082

I was not able to resolve this by css :(

Thanks for review :)

For comparison: (almost the same part as described in issue)
screen shot 2018-04-25 at 17 07 44

@coveralls
Copy link

coveralls commented Apr 25, 2018

Pull Request Test Coverage Report for Build 2396

  • 0 of 19 (0.0%) changed or added relevant lines in 1 file are covered.
  • 21 unchanged lines in 10 files lost coverage.
  • Overall coverage decreased (-0.02%) to 73.211%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/org/opensolaris/opengrok/search/Results.java 0 19 0.0%
Files with Coverage Reduction New Missed Lines %
src/org/opensolaris/opengrok/history/FileHistoryCache.java 1 73.52%
src/org/opensolaris/opengrok/search/Results.java 1 0.0%
src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java 2 85.27%
src/org/opensolaris/opengrok/history/MercurialRepository.java 2 81.72%
src/org/opensolaris/opengrok/history/SubversionRepository.java 2 83.41%
src/org/opensolaris/opengrok/configuration/IndexTimestamp.java 2 52.38%
src/org/opensolaris/opengrok/history/HistoryGuru.java 2 73.75%
src/org/opensolaris/opengrok/history/SCCSRepository.java 3 80.47%
src/org/opensolaris/opengrok/history/RepositoryFactory.java 3 85.42%
src/org/opensolaris/opengrok/history/BitKeeperRepository.java 3 82.95%
Totals Coverage Status
Change from base Build 2394: -0.02%
Covered Lines: 30822
Relevant Lines: 42100

💛 - Coveralls

@vladak
Copy link
Member

vladak commented Apr 26, 2018

Looks good enough to me.

@@ -253,6 +247,20 @@ public static void prettyPrint(Writer out, SearchHelper sh, int start,
out.write("</tt></td></tr>\n");
}
}
out.write("</tbody>");
Copy link
Contributor

@tarzanek tarzanek Apr 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really?
(I am just confused it wasn't there before ... isn't it closed somewhere else? )

Copy link
Contributor Author

@ahornace ahornace Apr 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was surprised as well. It seems the browser adds it there by itself.

Simple test: (when I Inspect Element the <tbody> is there)

<!doctype html>
<html>
<head>
</head>
<body>
	<table>
		<tr><td>test1</td></tr>
		<tr><td>test2</td></tr>
	</table>
</body>
</html>

@tarzanek
Copy link
Contributor

looks OK to me too, what will we do with coverage @vladak ?

@tarzanek tarzanek added this to the 1.1 milestone Apr 27, 2018
@vladak
Copy link
Member

vladak commented Apr 27, 2018

AFAIK this area of code is not covered at all so I am fine with integrating this as is.

@tarzanek tarzanek merged commit d49429b into oracle:master Apr 30, 2018
@tarzanek
Copy link
Contributor

thank you, closing

@ahornace ahornace deleted the search_res_bg_color branch June 27, 2018 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

background color of highlighted documents in search result change inconsistently
4 participants