Files
openide/java/java-impl/resources/inspectionDescriptions/TrailingWhitespacesInTextBlock.html
Bas Leijdekkersandintellij-monorepo-bot fdde91f28d Java: update inspection descriptions
GitOrigin-RevId: 829a5e8f0b97a4e21dbb1f7d99ba70b777d1240f
2025-04-12 16:28:13 +00:00

25 lines
639 B
HTML

<html>
<body>
Reports text blocks with trailing whitespace characters.
Trailing whitespace is considered incidental and will be stripped away by the Java compiler.
<p><b>Example (where spaces are indicated with dots):</b></p>
<pre><code>
..String.count.=."""
....one
....two....
....three
....""";
</code></pre>
<p>Two quick-fixes are provided.
One to remove the trailing whitespace, and one to escape the trailing whitespace so that it will not be removed by the compiler:</p>
<pre><code>
..String.count.=."""
....one
....two...\s
....three
....""";
</code></pre>
<!-- tooltip end -->
<p><small>New in 2021.1</small></p>
</body>
</html>