Coverage for khufu/typography/emphasizeText.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# encoding: utf-8
2from . import *
4def emphasizeText(
5 style="em",
6 text=""):
7 """
8 *Get HTML's default emphasis tags with lightweight styles.*
10 **Key Arguments**
12 - ``style`` -- the emphasis tag [ "small" | "strong" | "em" ]
13 - ``text`` -- the text to emphasise
16 **Return**
18 - ``emphasizeText`` -- the emphasized text
20 """
21 emphasizeText = """
22 <%(style)s>
23 %(text)s
24 </%(style)s>""" % locals()
26 return emphasizeText