[Zope-Checkins] CVS: Zope2 - StructuredText.py:1.24
Ken Manheimer
klm@korak.digicool.com
Mon, 13 Dec 1999 11:32:50 -0500
Update of /cvs-repository/Zope2/lib/python/StructuredText
In directory korak.digicool.com:/projects/sites/Tracker/lib/python/StructuredText
Modified Files:
StructuredText.py
Log Message:
Incorporated pavlos christoforou's mods to handle simple tables. From
his web page at http://www.zope.org/Members/gaaros/StructuredText:
Structured Text module with table support
A paragraph that has blocks of text enclosed in '||' is treated as a
table. The text blocks correspond to table cells and table rows are
denoted by newlines. By default the cells are center aligned. You can
change the defaults by modifying the CELL,ROW and TABLE class
attributes in class Table. A cell can span more than one column by
preceding a block of text with an equivalent number of cell separators
'||'. Newlines and '|' cannot be a part of the cell text. If you need
newlines use <BR>. For example:
|||| **Ingredients** ||
|| *Name* || *Amount* ||
||Spam||10||
||Eggs||3||