dawidwys commented on code in PR #23884:
URL: https://github.com/apache/flink/pull/23884#discussion_r1423942467
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/OperationUtils.java:
##########
@@ -43,9 +43,7 @@ public class OperationUtils {
* @return string with increased indentation
*/
static String indent(String item) {
- return "\n"
- + OPERATION_INDENT
- + item.replace("\n" + OPERATION_INDENT, "\n" +
OPERATION_INDENT + OPERATION_INDENT);
+ return "\n" + OPERATION_INDENT + item.replaceAll("\n", "\n" +
OPERATION_INDENT);
Review Comment:
I changed the `OperationUtils#indent` in a way it should leave escaped `\n`
untouched.
--
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]