diff options
| -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 |
