Skip to content

Commit

Permalink
updated center.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed May 29, 2023
1 parent b8c21da commit a8c29b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions center.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
sys.exit(4)

__author__ = 'Hari Sekhon'
__version__ = '0.5.0'
__version__ = '0.5.1'


class Center(CLI):
Expand Down Expand Up @@ -104,7 +104,7 @@ def process_line(self, line):
char = ' '
# preliminary strip() to be able to pick up # if it isn't the first char and their are spaces before it
line = line.strip()
if isChars(line[0], '#'):
if line and isChars(line[0], '#'):
char = line[0]
line = line.lstrip(char)
elif len(line) > 1 and isChars(line[0:1], '/'):
Expand Down

0 comments on commit a8c29b4

Please sign in to comment.