Java: conserve whitespace inside pre-tags as is (IDEA-371810)

GitOrigin-RevId: 24998ca546ab9957260153af766f35fc04e7ad1a
This commit is contained in:
Bas Leijdekkers
2025-04-30 18:14:06 +00:00
committed by intellij-monorepo-bot
parent a58f616609
commit c4ac894375
3 changed files with 63 additions and 13 deletions
@@ -368,3 +368,19 @@ final class LookupWithIndentsBuilder {
interface Foo<T, B, P, I>
{
}
/// <prE>
/// This has some formatted text with blank lines.
///
/// This has some formatted text with blank lines.
///
/// This has some formatted text with blank lines.
///
/// An indented line.
///
///
/// Multiple blank lines above and more below.
///
///
/// </Pre>
/// end
class Preformatted {}
@@ -391,3 +391,21 @@ final class LookupWithIndentsBuilder {
interface Foo<T, B, P, I>
{
}
<warning descr="Javadoc comment can be Markdown documentation comment">/**</warning>
* <prE>
* This has some formatted text with blank lines.
*
* This has some formatted text with blank lines.
*
* This has some formatted text with blank lines.
*
* An indented line.
*
*
* Multiple blank lines above and more below.
*
*
* </Pre>
* end
*/
class Preformatted {}