Skip to content

Commit

Permalink
Add test for github issue eclipse-jdt#3340
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume authored and Guillaume committed Nov 29, 2024
1 parent 352a0aa commit 17e75e5
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,19 @@ public void testBug234336() throws JavaModelException {
);
}

public void testBugGh3340() throws JavaModelException {
String source = "/**<pre><code>a\n b</code></pre>*/";
formatSource(source,
"/**\n" +
" * <pre>\n" +
" * <code>a\n" +
" b</code>\n" +
" * </pre>\n" +
" */",
CodeFormatter.K_JAVA_DOC
);
}

//static { TESTS_PREFIX = "testBug234583"; }
/**
* bug 234583: [formatter] Code formatter should adapt edits instead of regions
Expand Down

0 comments on commit 17e75e5

Please sign in to comment.