-
Notifications
You must be signed in to change notification settings - Fork 38.2k
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
Code example has callout from a different code example #29505
Comments
@dfjfj sorry, but I don't understand the problem you're trying to report. What do you mean by "redundant remark"? |
@dfjfj I see it now. Thanks very much. |
You're welcome, a little effort. |
That looks like a bug in the asciidoc rendering as the callout isn't in the source. I've noticed that switching to the Kotlin sample makes it go away. |
This commit adds callouts to two sets of Java/Kotlin code examples in the @ModelAttribute section for Web MVC in order to work around the "Code example has callout from a different code example" bug. This also aligns the Web MVC examples with the WebFlux examples. As a side note, the bug can also be seen in the WebFlux documentation if the callouts are removed from the first Java/Kotlin examples in the @ModelAttribute section for WebFlux. Thus it appears to be a general issue related to examples within a given section of the documentation when some examples have callouts and others do not, likely due to a bug in the Javascript that provides this feature. See gh-29505
I have pushed a workaround for this bug in ac7d428. However, as mentioned in the commit message this appears to be a general bug that still needs to be addressed. As @snicoll pointed out elsewhere, this is likely an issue with the Javascript that supports this feature. To address this, I have opened spring-io/spring-asciidoctor-backends#68. In light of that, I am closing this issue. |
Affects: Spring Framework 6.0.0
There is a small problem in the
@ModelAttribute
section of the reference manual: https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc-ann-modelattrib-method-argsThere are a few redundant remarks such as : "Adding a BindingResult next to the @ModelAttribute." etc.
I think this should be easy to find and modify, thanks.
The text was updated successfully, but these errors were encountered: