Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1347,4 +1347,25 @@ class T {
""";
assertThat(new Formatter().formatSourceAndFixImports(input)).isEqualTo(expected);
}

@Test
public void lineCommentNonBreakingSpace() throws Exception {
String input =
"""
class T {
// Copyright (C) 2017 Interactive Brokers LLC. All rights reserved. This code is subject to the\u00a0terms and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.
//\u00a0non-breaking space after comment prefix
}
""";
String expected =
"""
class T {
// Copyright (C) 2017 Interactive Brokers LLC. All rights reserved. This code is subject to the
//\u00a0terms and conditions of the IB API Non-Commercial License or the IB API Commercial License, as
// applicable.
// \u00a0non-breaking space after comment prefix
}
""";
assertThat(new Formatter().formatSource(input)).isEqualTo(expected);
}
}
Loading