Skip to content

Commit cff653a

Browse files
authored
javaclass task now removes newlines after all open curly braces (#115)
1 parent cfda98b commit cff653a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wpiformat/wpiformat/javaclass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def run_pipeline(self, config_file, name, lines):
1818
pos = 0
1919

2020
# Match two or more line separators
21-
token_str = r"/\*|\*/|//|" + linesep + r"|class\s[\w\d\s]*{" + \
22-
linesep + r"(?P<extra>(" + linesep + r")+)"
21+
token_str = r"/\*|\*/|//|" + linesep + r"|{" + linesep + \
22+
r"(?P<extra>(" + linesep + r")+)"
2323
token_regex = regex.compile(token_str)
2424

2525
in_multicomment = False

0 commit comments

Comments
 (0)