JoanGiner commited on
Commit
d4d92b8
·
1 Parent(s): 0155ff7

avoid backslases

Browse files
Files changed (1) hide show
  1. markdownGenerator.py +4 -4
markdownGenerator.py CHANGED
@@ -22,7 +22,7 @@ def generate_markdown(state):
22
  html_str = html_str + f"""
23
  <tr>
24
  <td><strong>{participant['name']}</strong></td>
25
- <td>{participant['description'].replace('\n', '')}</td>
26
  """
27
  if 'type' in participant:
28
  html_str = html_str + f"""<td>{participant['type'][0]}</td>"""
@@ -41,7 +41,7 @@ def generate_markdown(state):
41
  html_str = html_str + f"""
42
  <tr>
43
  <td><strong>{state['socialContext']['targetCommunity']['name']}</strong></td>
44
- <td>{state['socialContext']['targetCommunity']['description'].replace('\n', '')}</td>
45
  <td> Targeted Community </td>
46
  <td>{state['socialContext']['targetCommunity']['age'][0]}-{state['socialContext']['targetCommunity']['age'][1]}</td>
47
  <td>{state['socialContext']['targetCommunity']['ethnicities']}</td>
@@ -56,8 +56,8 @@ def generate_markdown(state):
56
  if body['name']:
57
  html_str = html_str + f"""
58
  <tr>
59
- <td><strong>{body['name'].replace('\n', '')}</strong></td>
60
- <td>{body['description'].replace('\n', '')}</td>"""
61
  if 'type' in body:
62
  html_str = html_str + f"""<td>{body['type'][0]}</td>"""
63
  else:
 
22
  html_str = html_str + f"""
23
  <tr>
24
  <td><strong>{participant['name']}</strong></td>
25
+ <td>{participant['description'].replace('\\n', '')}</td>
26
  """
27
  if 'type' in participant:
28
  html_str = html_str + f"""<td>{participant['type'][0]}</td>"""
 
41
  html_str = html_str + f"""
42
  <tr>
43
  <td><strong>{state['socialContext']['targetCommunity']['name']}</strong></td>
44
+ <td>{state['socialContext']['targetCommunity']['description'].replace('\\n', '')}</td>
45
  <td> Targeted Community </td>
46
  <td>{state['socialContext']['targetCommunity']['age'][0]}-{state['socialContext']['targetCommunity']['age'][1]}</td>
47
  <td>{state['socialContext']['targetCommunity']['ethnicities']}</td>
 
56
  if body['name']:
57
  html_str = html_str + f"""
58
  <tr>
59
+ <td><strong>{body['name'].replace('\\n', '')}</strong></td>
60
+ <td>{body['description'].replace('\\n', '')}</td>"""
61
  if 'type' in body:
62
  html_str = html_str + f"""<td>{body['type'][0]}</td>"""
63
  else: