arturobernalg opened a new pull request, #1259:
URL: https://github.com/apache/maven-plugin-tools/pull/1259

   Fixes #807.
   
   HtmlToPlainTextConverter.FormattingVisitor appended "\n * " for every <li> 
regardless of nesting depth, and its cleanup step collated any run of spaces -- 
including indentation meant to show nesting -- down to one. A nested <ul>/<li> 
structure in a Mojo's or parameter's javadoc always rendered as one flat bullet 
level in the plain-text output used by mvn <plugin>:help, losing the nesting 
the javadoc author intended.
   
   FormattingVisitor now tracks <ul>/<ol> nesting depth and indents each <li> 
accordingly, using a placeholder character for the indentation spaces so the 
existing space-collation cleanup doesn't erase it -- the placeholder is only 
expanded to real spaces as the last step of toString(). Added tests for a 
single-level list (unchanged output), a nested list, and a doubly-nested list. 
Full module suite, checkstyle and spotless pass locally.
   
   To make clear that you license your contribution under the Apache License 
Version 2.0, January 2004, check one of the following:
   
   - [x] I hereby declare this contribution to be licensed under the Apache 
License Version 2.0, January 2004
   - [ ] I hereby declare that I have filed an Apache Individual Contributor 
License Agreement.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to