From 6ea0a2cf43452b50f154df14149de9b1403b5c4f Mon Sep 17 00:00:00 2001 From: Divyansh Choudhary Date: Wed, 28 Feb 2024 15:03:53 +0530 Subject: [PATCH] Fix pyflyby messages check during nb cleanup (#23) * Fix pyflyby messages check during nb cleanup * Update package version and CHANGELOG --------- Co-authored-by: Divyansh Choudhary --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/index.tsx | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed03740..4add4ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 2ff09d6..74af223 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.tsx b/src/index.tsx index be6826f..5e57815 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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; }