Skip to content

Commit

Permalink
Fixed prefix-list line printing format
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaKesava1 authored Mar 28, 2020
1 parent 038b927 commit b6bef80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PrefixList.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,13 @@ def FormatBlock(configFormat, action, lines, linePredicateMap, patternString):
if line[0] == line[1] == line[2]:
tmp[3] = " "
elif line[0] == line[1]:
tmp[3] = "/"+line[0] + " le " + line[2]
tmp[3] = " le " + line[2]
elif line[1] == line[2] and line[0] != line[1]:
tmp[3] = "/"+line[0] + " eq " + line[1]
tmp[3] = " eq " + line[1]
elif line[1] == line[2]:
tmp[3] = "/"+line[0] + " ge " + line[1]
tmp[3] = " ge " + line[1]
else:
tmp[3] = "/"+line[0] + " ge " + line[1] + " le " + line[2]
tmp[3] = " ge " + line[1] + " le " + line[2]
output += "{:<3}: {:<3}: {} {} {}\n".format(
str(line[LINENUM]), tmp[0], tmp[1], tmp[2], tmp[3])
htmlCmds.append(tmp)
Expand Down

0 comments on commit b6bef80

Please sign in to comment.