Skip to content

Commit

Permalink
Merge pull request #2087 from havardAasen/fix-python-test-issue-1950
Browse files Browse the repository at this point in the history
Fix test 'Do not remove whitespace after number'
  • Loading branch information
bitwiseman committed Aug 6, 2022
2 parents 26039eb + 457c571 commit a2dcf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/jsbeautifier/javascript/beautifier.py
Expand Up @@ -1603,7 +1603,7 @@ def handle_dot(self, current_token):
self.handle_whitespace_and_comments(current_token, True)

if re.search("^([0-9])+$", self._flags.last_token.text):
self._flags.whitespace_before = True
self._output.space_before_token = True

if reserved_array(self._flags.last_token, _special_word_set):
self._output.space_before_token = False
Expand Down

0 comments on commit a2dcf1e

Please sign in to comment.