1
0
Fork 0

Replaced line breaks for easier to read instructions

This commit is contained in:
Ava Gaiety Wroten 2019-12-24 17:30:46 -06:00
parent 65da7e8800
commit 4206cb4809
2 changed files with 4 additions and 0 deletions

View file

@ -34,8 +34,12 @@ class Base(Handler):
def cleanup(self, meal):
self.replacable_keys.do_replace(meal)
self.cleanup_instructions(meal)
self.cleanup_ingredients(meal)
def cleanup_instructions(self, meal):
meal["instructions"] = meal["instructions"].replace('\r\n', '\n\n')
def cleanup_ingredients(self, meal):
potential_length = 20
true_length = 0