Lino Website

Documentation · Modules · gendoc (Generate arbitrary documents) · Examples for gendoc

gendoc5.py

from lino.gendoc.maker import DocMaker

def body(doc):
    doc.h1("Fifth Example")
    doc.h2("Tables")

    doc.example("""

The markup language of memo() supports tables using the same
markup syntax as HTML:

    ""","""
foo bar baz
A B C
""") doc.example(""" You can specify the name of a table style as the class attribute of the <table> tag: ""","""
foo bar baz
A B C
""") doc.example(""" You can omit closing tags if the parser can close them automatically. This was valid HTML in the beginnings of the Internet, and modern browsers still render it correctly: ""","""
foo bar baz
A B C
""") DocMaker().main(body)

Output: pdf html

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:24:07