Skip to content

Commit 2482455

Browse files
committed
🐛 Unnecessary spaces after ';' in minified output have been removed
1 parent 070eb63 commit 2482455

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.1] - Unreleased
8+
9+
### Fixed
10+
- Unnecessary spaces after ';' in minified output have been removed.
11+
712
## [2.2.0] - 2019-10-27
813
### Added
914
- Support for Python 3.8 language features:
@@ -64,6 +69,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6469
- python-minifier package
6570
- pyminify command
6671

72+
73+
[2.2.1]: https://github.com/dflook/python-minifier/compare/2.2.0...2.2.1
6774
[2.2.0]: https://github.com/dflook/python-minifier/compare/2.1.2...2.2.0
6875
[2.1.2]: https://github.com/dflook/python-minifier/compare/2.1.1...2.1.2
6976
[2.1.1]: https://github.com/dflook/python-minifier/compare/2.1.0...2.1.1

src/python_minifier/expression_printer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def token_break(self):
772772
if len(self.code) == 0:
773773
return
774774

775-
if self.code[-1] not in '[]{}() :"\'=\n\t<>|^&+-*@/%':
775+
if self.code[-1] not in '[]{}() :"\'=\n\t<>|^&+-*@/%;':
776776
self.code += ' '
777777

778778
def visit_JoinedStr(self, node):

0 commit comments

Comments
 (0)