-
Notifications
You must be signed in to change notification settings - Fork 84
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
Another issue with timestamper #275
Comments
I'd like to bump this. It occurs on the ansicolor-plugin/src/main/java/hudson/plugins/ansicolor/AnsiHtmlOutputStream.java Lines 236 to 240 in 74393de
We could just change the You can get the same appearance by adding This is what I get if I use This is what it should look like: This is the code I've edited to get to what the first screenshot looks like: if (defaultFg != null || defaultBg != null) {
- openTag(new AnsiAttributeElement(AnsiAttrType.DEFAULT, "div", "style=\"" +
+ openTag(new AnsiAttributeElement(AnsiAttrType.DEFAULT, "span", "style=\"" +
+ "display: inline-block;" +
(defaultBg != null ? "background-color: " + colorMap.getNormal(defaultBg) + ";" : "") +
(defaultFg != null ? "color: " + colorMap.getNormal(defaultFg) + ";" : "") + "\""));
} |
@chill389cc Want to try writing some tests and PRing your change? |
@dblock I understand that creating a failing unit test outlining the problem I identified in my previous post would be the most helpful way to fix the problem. Unfortunately I don't have as much time to look at this as I'd like. I've created a branch and I've pushed up my WIP code that I showed above. I've tried to make a unit test for this problem but I haven't pushed anything. I think the problem appears in the annotating of multiple consecutive lines, so it isn't as simple as creating a test like |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu
Reproduction steps
Expected Results
Expect the console color blocks to have an uninterrupted display for each line.
Actual Results
The div is rendering as block forcing a new line after the timestamp span.
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: