Skip to content

Commit

Permalink
fixing #6 bash "-z string"
Browse files Browse the repository at this point in the history
  • Loading branch information
kristopolous committed Apr 26, 2020
1 parent 2279907 commit 903317f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mansnip
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ while line_num + 1 < len(man_input):

line = man_input[line_num].strip('\n')

logging.info(line_num)
#
# Establish the "indent", this is crucial to how essentially
# everything works.
Expand Down Expand Up @@ -217,7 +216,7 @@ while line_num + 1 < len(man_input):
)):
spacer = '\n' + ' ' * rs
logging.info(len(buf))
if (len(buf) == 2 and indent == term_indent and line_def) or len(buf) > 2:
if (len(buf) == 2 and indent == term_indent and line_def) or len(buf) > 1:
#
# This is a lot of fancy formatting. We want the
# vertical whitespace between the heading and snippet to be consistent.
Expand Down

0 comments on commit 903317f

Please sign in to comment.