Skip to content

Commit

Permalink
whoops (#138)
Browse files Browse the repository at this point in the history
* whoops

* welp
  • Loading branch information
rahularya50 authored Apr 6, 2019
1 parent 422068f commit 4dbb751
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ def prettify(strings: List[str], javastyle: bool=False) -> str:

@lru_cache(CACHE_SIZE)
def prettify_single(string: str, javastyle: bool) -> List[str]:
global java_newline
if javastyle:
global java_newline
java_newline = "\n"
else:
java_newline = ""
out = []
buff = lexer.TokenBuffer([string], True)
while not buff.done:
Expand Down

0 comments on commit 4dbb751

Please sign in to comment.