[
https://issues.apache.org/jira/browse/NETBEANS-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Bien closed NETBEANS-5118.
----------------------------------
Fix Version/s: 12.3
Resolution: Fixed
> Multiline string literals are highlighted incorrectly when they contain blank
> lines
> -----------------------------------------------------------------------------------
>
> Key: NETBEANS-5118
> URL: https://issues.apache.org/jira/browse/NETBEANS-5118
> Project: NetBeans
> Issue Type: Bug
> Components: cnd - Editor
> Affects Versions: 12.2
> Environment: Product Version: Apache NetBeans IDE 12.2
> Java: 15.0.1; OpenJDK 64-Bit Server VM 15.0.1+9
> Runtime: OpenJDK Runtime Environment 15.0.1+9
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> Reporter: Scott Palmer
> Priority: Minor
> Labels: pull-request-available
> Fix For: 12.3
>
> Attachments: bad_highlight.png, correct_indent.png
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> According to the spec, (https://openjdk.java.net/jeps/378) blank lines are
> excluded from "determining lines" when calculating indentation to strip.
> "Blank lines -- lines that are empty or are composed wholly of white space --
> have no visible influence on the indentation."
> NetBeans highlighting does not do this and highlights extra leading spaces as
> if they are included in the string when there are blank lines that are
> completely empty or contain less spaces than the correct indent amount.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists