Switch from \n to /n

merge-requests/34/head
Brian Haley 2019-08-16 18:55:59 -04:00
parent 7747b11728
commit 1074fe10f1
1 changed files with 4 additions and 11 deletions

View File

@ -74,11 +74,11 @@
" continue\n", " continue\n",
" elif e.previous_sibling.name == 'br':\n", " elif e.previous_sibling.name == 'br':\n",
" # If this element and the previous are br\n", " # If this element and the previous are br\n",
" # and the next is not append \\n\n", " # and the next is not append /n\n",
" description = description + ' \\n\\n '\n", " description = description + ' /n/n'\n",
" else:\n", " else:\n",
" # If there is just one br append \\n\n", " # If there is just one br append /n\n",
" description = description + ' \\n '\n", " description = description + ' /n'\n",
" else:\n", " else:\n",
" # Append the text inside the element\n", " # Append the text inside the element\n",
" description = description + e.text.strip()\n", " description = description + e.text.strip()\n",
@ -126,13 +126,6 @@
"source": [ "source": [
"description_background.to_csv('background.csv', encoding='UTF-8', index=False)" "description_background.to_csv('background.csv', encoding='UTF-8', index=False)"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
} }
], ],
"metadata": { "metadata": {