source: trunk/skins/lemill/cookText.py @ 1904

Revision 1904, 492 bytes checked in by gabor, 13 years ago (diff)

fixed #1446 spent 17h

Line 
1## Script (Python) "convertContentForKupu"
2##title=Convert content to HTML for editing with Kupu
3##bind container=container
4##bind context=context
5##bind namespace=
6##bind script=script
7##bind subpath=traverse_subpath
8##parameters=bodytext
9
10## Assumes that inputs are strings, not lists.
11## ChapterFields should use fields getCooked -method instead.
12
13lt=context.lemill_tool
14if bodytext:
15    return lt.shortenSymbolicLines(lt.shorten_link_names((lt.htmlify(bodytext))))
16else:
17    return None
Note: See TracBrowser for help on using the repository browser.