aboutsummaryrefslogtreecommitdiffstats
path: root/famille.py
diff options
context:
space:
mode:
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