Skip to content

Commit

Permalink
Fix pyflyby messages check during nb cleanup (#23)
Browse files Browse the repository at this point in the history
* Fix pyflyby messages check during nb cleanup

* Update package version and CHANGELOG

---------

Co-authored-by: Divyansh Choudhary <choudhdi@deshaw.com>
  • Loading branch information
divyansshhh and Divyansh Choudhary authored Feb 28, 2024
1 parent 54333fc commit 6ea0a2c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [5.1.2](https://github.com/deshaw/jupyterlab-pyflyby/compare/v5.1.1...v5.1.2) (2024-02-28)

### Fixed

- Fix pyflyby messages check during nb cleanup

## [5.1.1](https://github.com/deshaw/jupyterlab-pyflyby/compare/v5.1.0...v5.1.1) (2024-02-20)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deshaw/jupyterlab-pyflyby",
"version": "5.1.1",
"version": "5.1.2",
"description": "A labextension to integrate pyflyby with notebooks",
"keywords": [
"jupyter",
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ class PyflyByWidget extends Widget {
// just have pyflyby messages
if (
line !== '' &&
line !== PYFLYBY_START_MSG &&
line !== PYFLYBY_END_MSG
line !== PYFLYBY_START_MSG.trim() &&
line !== PYFLYBY_END_MSG.trim()
) {
shouldDelete = false;
}
Expand Down

0 comments on commit 6ea0a2c

Please sign in to comment.