fix typo, add a tiny bit of doc to the code

This commit is contained in:
Mathieu PATUREL
2017-01-26 11:30:56 +11:00
parent c7961ce94c
commit 8cc6b2b263
3 changed files with 4 additions and 2 deletions

View File

@ -90,7 +90,6 @@ def get_settings():
def pre_with_br(html):
"""Because the phantoms of sublime text does not support <pre> blocks
this function replaces every \n with a <br> in a <pre>"""
# Need to use bs4
soup = BeautifulSoup(html)
for pre in soup.find_all('pre'):
code = pre.find('code')