Files
openide/java/java-impl/resources/inspectionDescriptions/InconsistentTextBlockIndent.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

26 lines
821 B
HTML

<html>
<body>
Reports text blocks that are indented using both spaces and tabs.
Such cases produce unexpected results since spaces and tabs are treated equally by the text block processing.
<p>In the following example, spaces and tabs are visualized as <code>·</code> and <code></code> respectively,
and a tab is equal to 4 spaces in the editor.</p>
<p><b>Example:</b></p>
<pre><code>
String colors = """
········red
␉ ␉ green
········blue""";
</code></pre>
<p>After printing such a string, the result will be:</p>
<pre><code>
······red
green
······blue
</code></pre>
<p>After the compiler removes an equal amount of spaces or tabs from the beginning of each line,
some lines remain with leading spaces.</p>
<!-- tooltip end -->
<p><small>New in 2021.1</small></p>
</body>
</html>