mbien commented on code in PR #7097:
URL: https://github.com/apache/netbeans/pull/7097#discussion_r1522560673
##########
ide/languages.hcl/test/unit/src/org/netbeans/modules/languages/hcl/HCLIndenterTest.java:
##########
@@ -138,7 +149,8 @@ private void performNewLineIndentationTest(String code,
String golden) throws Ex
assertNotSame(-1, pos);
- code = code.replaceAll(Pattern.quote("|"), "");
+ code = code.replaceAll(Pattern.quote("|"), "").replace('_', ' ');
Review Comment:
just to be clear: my comment was about `replace` vs `replaceAll`, you might
have confused this comment with
https://github.com/apache/netbeans/pull/7097#discussion_r1508209699.
(yes the text blocks set the whitespace prefix based on where the `"""` is
set, javac is calling the
[`String#indent`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html#indent(int))
method there)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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