aboutsummaryrefslogtreecommitdiffstats
path: root/famille.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-04-01 20:20:34 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-04-01 20:20:34 -0400
commitbe0df053aff9585b838290d4d6d9bc1716f56b8a (patch)
tree8307315e27531a1f7fe6f61ce3f4dbe24053b681 /famille.py
parentd8b62f3356578c6b4244ee9348858c8f3a252e3a (diff)
downloadfamille-flask-be0df053aff9585b838290d4d6d9bc1716f56b8a.tar.gz
Smartypants
Diffstat (limited to 'famille.py')
-rw-r--r--famille.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/famille.py b/famille.py
index 0520687..c1cedd3 100644
--- a/famille.py
+++ b/famille.py
@@ -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