Omaha #5700 - Fix captialization of bullets header text in Hazard_RFW.

Change-Id: I435e92bdb8bb754b4f860507d174a41fa2d697cc

Former-commit-id: 9334bdf404e24a80fee709b932afd734a11c1331
This commit is contained in:
David Gillingham 2016-06-17 11:01:06 -05:00
parent f6f519dbe9
commit 30bfc5ac91

View file

@ -758,22 +758,21 @@ class TextProduct(GenericHazards.TextProduct):
### loop through the bullets and format the output
for b in bList:
if b == self._locationsBullet:
b = b.upper()
if b == self._locationsBullet.upper():
locations = self._getLocationsList(areaDictionary, argDict, eachHazard['seg'])
bullets = bullets + StringUtils.StringUtils().indentText(b+"..."+locations, \
indentFirstString="* ", indentNextString=" ", \
maxWidth=65,breakStrings=[" ","..."]) + "\n\n"
elif b == "Extreme grassland fire danger":
elif b == "Extreme grassland fire danger".upper():
bullets = bullets + "* " + b + "...is forecast.\n\n"
elif b == "Highest threat":
elif b == "Highest threat".upper():
bullets = bullets + "|* * " + b + "...is located (optional bullet)*|\n\n"
elif b == "Impacts":
elif b == "Impacts".upper():
bullets = bullets + "* " + b + "...any fires that develop will likely spread rapidly."
bullets = bullets + " Outdoor burning is not recommended.\n\n"
else:
bullets = bullets + "* " + b + "...|* Enter bullet text *|\n\n"