Details
Assignee
UnassignedUnassignedReporter
Philippe CloutierPhilippe CloutierComponents
Priority
Trivial
Details
Details
Assignee
Unassigned
UnassignedReporter
Philippe Cloutier
Philippe CloutierComponents
Priority
Created February 22, 2022 at 3:36 PM
Updated March 23, 2022 at 1:21 PM
Some of the examples in the Hibernate ORM’s User Guide contain logical code lines with too many characters to fit in one actual line. Since example code is indented but continuation of wrapped lines isn’t, the result is confusing/suboptimal.
For example, example #2, in section 2.2.2. PhysicalNamingStrategy, contains the following logical line of code, which - no matter what the zoom level is - displays on 2 actual lines:
public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment jdbcEnvironment) {
That example alone contains at least 3 more examples of poorly wrapped lines, as can be seen in the following screenshot:
At least the following can solve or mitigate:
Reducing the length (number of characters) of logical lines (splitting them manually)
Use a smaller font
Reduce the document’s huge lateral margins (the white zones around the smaller yellow margins )
Add visual indicators identifying wrapped lines