File: pythonDoc.py

package info (click to toggle)
pyth 0.5.6-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 312 kB
  • sloc: python: 1,609; makefile: 7
file content (34 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-

from pyth.plugins.python.reader import *

def buildDoc():
    return PythonReader.read((        
      P [
       T(ITALIC, BOLD) [ u"Hello World" ],
       u", hee hee hee! ", T(url=u'http://www.google.com') [ u"This seems to work" ]
      ],
      L [
       [unicode(word) for word in ("One", "Two", "Three", "Four")]
      ],
      L [
        u"Introduction",
        LE [
          u"First sentence in the\nsub-section",
          u"Also some other stuff",
          L [
            u"Alpha",
            L [
              u"Beta\nWhomble",
              LE [ u"Beta", u"Whoop\nWhoa" ],
              u"Beta",
            ],
            u"Gamma",
            u"Gamma",
          ],
          u"Final sentence in the sub-section",
        ],
        T(BOLD) [ u"Conclusion" ],
      ],
      u"That's all, folks! 再見!"
    ))