Skip to content

Commit

Permalink
Fix Windows linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero committed Apr 18, 2024
1 parent e99a778 commit 9c8022e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/it/java-11/class-comments/validate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def expectMethodArgument2 = Html.dd(Html.code('needle') + " - it stings")
assertStringContains(javadocContent, expectMethodArgument1)
assertStringContains(javadocContent, expectMethodArgument2)

def expectMethodReturn = Html.dt(Html.span("Returns:", "returnLabel")) + "\n" + Html.dd('true if lucky')
def expectMethodReturn = Html.dt(Html.span("Returns:", "returnLabel")) + System.lineSeparator() + Html.dd('true if lucky')

assertStringContains(javadocContent, expectMethodReturn)

Expand Down
2 changes: 1 addition & 1 deletion src/it/java-17/class-comments/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<source>11</source>
<source>17</source>
<additionalJOptions>
<additionalJOption>-J--add-exports=jdk.javadoc/jdk.javadoc.internal.tool=ALL-UNNAMED</additionalJOption>
<additionalJOption>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</additionalJOption>
Expand Down
2 changes: 1 addition & 1 deletion src/it/java-17/class-comments/validate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def expectMethodArgument2 = Html.dd(Html.code('needle') + " - it stings")
assertStringContains(javadocContent, expectMethodArgument1)
assertStringContains(javadocContent, expectMethodArgument2)

def expectMethodReturn = Html.dt("Returns:") + "\n" + Html.dd('true if lucky')
def expectMethodReturn = Html.dt("Returns:") + System.lineSeparator() + Html.dd('true if lucky')

assertStringContains(javadocContent, expectMethodReturn)

Expand Down

0 comments on commit 9c8022e

Please sign in to comment.