Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged trunk to branch. I still ahve 4 ftests failing, but I suspect, it
will be fixed once I merge the changes of the last three days (hopefully).
- Loading branch information
0 parents
commit 3a107e3
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE | ||
# | ||
############################################################################## | ||
""" | ||
Consider the following example:: | ||
>>> from structuredtext.stng import structurize | ||
>>> from structuredtext.document import DocumentWithImages | ||
>>> from structuredtext.html import HTMLWithImages | ||
>>> from structuredtext.docbook import DocBook | ||
We first need to structurize the string and make a full-blown | ||
document out of it: | ||
>>> struct = structurize(structured_string) | ||
>>> doc = DocumentWithImages()(struct) | ||
Now feed it to some output generator, in this case HTML or DocBook: | ||
>>> output = HTMLWithImages()(doc, level=1) | ||
>>> output = DocBook()(doc, level=1) | ||
$Id$ | ||
""" | ||
__docformat__ = 'restructuredtext' |