You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/03/11 13:02:11 UTC
[PR] Normalize whitespace in multiline XSD documentation for javadoc [cxf-xjc-utils]
gnodet opened a new pull request, #304:
URL: https://github.com/apache/cxf-xjc-utils/pull/304
## Summary
- When XSD `<documentation>` spans multiple indented lines, the generated javadoc preserved the leading whitespace on continuation lines, producing sloppy output
- Trim each line individually and skip blank lines, preserving intentional spaces within lines
- Add unit tests for the new `trimLines` helper
Closes #6 — provides a cleaner alternative to the regex approach proposed there.
### Before
```java
/**
* Multiline documentation of
* attribute
*/
```
### After
```java
/**
* Multiline documentation of
* attribute
*/
```
## Test plan
- [x] New unit tests for `trimLines` covering single-line, multiline, blank lines, and internal space preservation
- [x] Existing integration tests pass (`mvn -B clean install`)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Normalize whitespace in multiline XSD documentation for javadoc [cxf-xjc-utils]
Posted by "reta (via GitHub)" <gi...@apache.org>.
reta merged PR #304:
URL: https://github.com/apache/cxf-xjc-utils/pull/304
--
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: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org