Coverage for khufu/typography/blockquote.py : 80%

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 blockquote(
5 content="",
6 source=False,
7 pullRight=False):
8 """
9 *Get HTML5 Blockquote*
11 **Key Arguments**
13 - ``content`` -- content to be quoted
14 - ``source`` -- source of quote
17 **Return**
19 - None
21 """
22 if source:
23 source = """<small><cite title="%(source)s">%(source)s</cite></small>""" % locals(
24 )
25 else:
26 source = ""
28 if pullRight:
29 pullRight = """class="pull-right" """
30 else:
31 pullRight = ""
33 blockquote = """
34 <blockquote %(pullRight)s>
35 <p>%(content)s</p>
36 %(source)s
37 </blockquote>""" % locals()
39 return blockquote