Skip to content

Fix broken HTML table in report goal when using maven-site-plugin:4.0.0-M4#164

Merged
jcgay merged 2 commits into
mojohaus:masterfrom
nyg:fix-broken-html-table
Jan 25, 2023
Merged

Fix broken HTML table in report goal when using maven-site-plugin:4.0.0-M4#164
jcgay merged 2 commits into
mojohaus:masterfrom
nyg:fix-broken-html-table

Conversation

@nyg
Copy link
Copy Markdown
Contributor

@nyg nyg commented Jan 16, 2023

Fixes #163

First argument is for the columns text justification (null means left by default) and second argument is to draw borders but if set to true it will remove the style of the table.

https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#tableRows-int:A-boolean-

Let me know if you prefer constants or local variables to make this more explicit.

Before:
image

After:
image

@jcgay
Copy link
Copy Markdown
Member

jcgay commented Jan 17, 2023

Thanks you very much for the investigation and the fix 👍

Do you think it is possible to verify the correct behavior with a test ? There is already one available for this goal but maybe we could add another one with the new maven-site-plugin ?

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 17, 2023

Test Results

41 tests  +1   41 ✔️ +1   3m 50s ⏱️ + 1m 2s
14 suites ±0     0 💤 ±0 
14 files   ±0     0 ±0 

Results for commit b548159. ± Comparison against base commit 050e73e.

♻️ This comment has been updated with latest results.

@jcgay jcgay added the bug label Jan 17, 2023
@nyg
Copy link
Copy Markdown
Contributor Author

nyg commented Jan 17, 2023

Thanks for the feedback!

I can add a test, e.g. generate_report_with_maven_site_plugin_v4, and create a new folder next to "generate_report_for_multimodule_project" containing only a single pom.xml with the v4 of maven-site-plugin.

Would it be ok?

@nyg
Copy link
Copy Markdown
Contributor Author

nyg commented Jan 23, 2023

@jcgay Did you have time to look at the test I added? Thanks :)

@jcgay
Copy link
Copy Markdown
Member

jcgay commented Jan 25, 2023

@jcgay Did you have time to look at the test I added? Thanks :)

Yes, looks good to me! I'm merging it! Thanks again 😇

@jcgay jcgay merged commit 3db5435 into mojohaus:master Jan 25, 2023
@nyg nyg deleted the fix-broken-html-table branch January 25, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML broken with version 4.0.0-M4 of maven-site-plugin

3 participants