Attachment 'Clear.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - Thumbnail Macro
4 Version 0.1
5
6 [[Clear(left)]]
7 [[Clear(right)]]
8 [[Clear]]
9 Avoids floating content to the left, right or both of the content following.
10
11 @copyright: 2007 by Kenneth Bull
12 @license: GNU GPL, see COPYING for details.
13
14 """
15
16 def execute(macro, args):
17 args = (args or '').strip().lower();
18 return macro.formatter.div(1, style='clear:%s;' % (args if args in ['left', 'right'] else 'both'))+ \
19 macro.formatter.div(0)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.