diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2015-04-01 20:20:34 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2015-04-01 20:20:34 -0400 |
| commit | be0df053aff9585b838290d4d6d9bc1716f56b8a (patch) | |
| tree | 8307315e27531a1f7fe6f61ce3f4dbe24053b681 /famille.py | |
| parent | d8b62f3356578c6b4244ee9348858c8f3a252e3a (diff) | |
| download | famille-flask-be0df053aff9585b838290d4d6d9bc1716f56b8a.tar.gz | |
Smartypants
Diffstat (limited to 'famille.py')
| -rw-r--r-- | famille.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -15,6 +15,7 @@ from email import utils from bs4 import BeautifulSoup from flask_mail import Mail, Message import locale +from smartypants import smartypants, Attr locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') @@ -22,7 +23,8 @@ locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') def rstify(string): w = Writer() - result = core.publish_parts(string, writer=w)['fragment'] + result = smartypants(core.publish_parts(string, writer=w)['fragment'], + Attr.set2 | Attr.w) return result # configuration |
