From 37d983ee51441a1e0da64fefad0d12b88502215a Mon Sep 17 00:00:00 2001 From: df89 <df89@me.com> Date: Tue, 29 Jun 2021 18:28:35 +0200 Subject: [PATCH] fix: Surrounding whitespace deleted from input --- oop_changelog_scope.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oop_changelog_scope.py b/oop_changelog_scope.py index c385e12..050dbd7 100644 --- a/oop_changelog_scope.py +++ b/oop_changelog_scope.py @@ -135,10 +135,10 @@ #### Main #### -inputPath = input("Please enter the base path of the repository: ") -userDecision = input("Should the generated changelog be stored in another location (y/n)? ").lower() +inputPath = input("Please enter the base path of the repository: ").strip() +userDecision = input("Should the generated changelog be stored in another location (y/n)? ").lower().strip() if userDecision == "y": - outputPath = (input("Please enter the output path: ")) + outputPath = input("Please enter the output path: ").strip() elif userDecision == "n": print("The changelog will be stored in the same location as the repository.") outputPath = inputPath -- Gitblit v1.9.1