Skip to content

Commit

Permalink
Merge pull request chaoss#36 from chaoss/ritik-patch-7
Browse files Browse the repository at this point in the history
replacing ampersand with 'and'
  • Loading branch information
yash-yp authored Aug 24, 2021
2 parents 6c11242 + 126cac9 commit 95589ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions automation/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ def extract_question(metric):
# data[1] = 'Question: question part of the metric'
metric_question = spilt_by_colon(data[1])

# Replace '&' to 'and' to prevent breaking of tables in pandoc
metric_name = metric_name.replace('&', 'and')
metric_question = metric_question.replace('&', 'and')

return metric_name, metric_question


Expand All @@ -292,6 +296,10 @@ def extract_goal(focus_area_README):
focus_area_name = data[0].split(maxsplit=1)[1]
focus_area_goal = spilt_by_colon(data[1])

# Replace '&' to 'and'
focus_area_name = focus_area_name.replace('&', 'and')
focus_area_goal = focus_area_goal.replace('&', 'and')

return focus_area_name, focus_area_goal


Expand Down

0 comments on commit 95589ec

Please sign in to comment.