File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 1.0.2] - 2022-10-19
10
+
11
+ ### Changed
12
+
13
+ - Fix trailing whitespace stripping to not including newlines.
14
+
9
15
## [ 1.0.1] - 2022-10-18
10
16
11
17
### Changed
@@ -37,7 +43,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
37
43
38
44
- 🎉 Initial release! 🎉
39
45
40
- [ unreleased ] : https://github.com/ruby-syntax-tree/prettier_print/compare/v1.0.1...HEAD
46
+ [ unreleased ] : https://github.com/ruby-syntax-tree/prettier_print/compare/v1.0.2...HEAD
47
+ [ 1.0.2 ] : https://github.com/ruby-syntax-tree/prettier_print/compare/v1.0.1...v1.0.2
41
48
[ 1.0.1 ] : https://github.com/ruby-syntax-tree/prettier_print/compare/v1.0.0...v1.0.1
42
49
[ 1.0.0 ] : https://github.com/ruby-syntax-tree/prettier_print/compare/v0.1.0...v1.0.0
43
50
[ 0.1.0 ] : https://github.com/ruby-syntax-tree/prettier_print/compare/df51ce...v0.1.0
Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- prettier_print (1.0.1 )
4
+ prettier_print (1.0.2 )
5
5
6
6
GEM
7
7
remote: https://rubygems.org/
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ def <<(object)
291
291
292
292
def trim!
293
293
length = output . length
294
- output . rstrip!
294
+ output . gsub! ( /[ \t ]* \z / , "" )
295
295
length - output . length
296
296
end
297
297
end
@@ -323,7 +323,7 @@ def trim!
323
323
324
324
if output . any? && output . last . is_a? ( String ) && !output . last . frozen?
325
325
length = output . last . length
326
- output . last . rstrip!
326
+ output . last . gsub! ( /[ \t ]* \z / , "" )
327
327
trimmed += length - output . last . length
328
328
end
329
329
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
class PrettierPrint
4
- VERSION = "1.0.1 "
4
+ VERSION = "1.0.2 "
5
5
end
You can’t perform that action at this time.
0 commit comments