~osomon/software-center/button_release

« back to all changes in this revision

Viewing changes to test/test_htmlize.py

  • Committer: Michael Vogt
  • Date: 2010-04-14 23:10:14 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100414231014-ek2d2uxb4zthv54s
softwarecenter/utils.py: do not generate <p> inside <li>

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
from softwarecenter.utils import htmlize_package_desc
4
4
 
5
 
 
6
 
d = """
 
5
#file-roller
 
6
d1 = """
7
7
File-roller is an archive manager for the GNOME environment. It allows you to:
8
8
 
9
9
* Create and modify archives.
25
25
File-roller doesn't perform archive operations by itself, but relies on standard tools for this.
26
26
"""
27
27
 
28
 
 
29
 
html_descr = "\n".join(htmlize_package_desc(d))
30
 
print html_descr
 
28
#drgeo
 
29
d2 = """
 
30
This is the Gtk interactive geometry software. It allows one
 
31
to create geometric figure plus the interactive manipulation of such
 
32
figure in respect with their geometric constraints. It is usable in
 
33
teaching situation with students from primary or secondary level.
 
34
 
 
35
Dr. Geo comes with a complete set of tools arranged
 
36
in different categories:
 
37
 
 
38
 * points
 
39
 * lines
 
40
 * geometric transformations
 
41
 * numeric function
 
42
 * macro-construction
 
43
 * DGS object - Dr. Geo Guile Script
 
44
 * DSF - Dr Geo Scheme Figure, it is interactive figure defined in
 
45
   a file and evaluated with the embedded Scheme interpretor, awesome!
 
46
 * Export facilities in the LaTeX and EPS formats
 
47
 
 
48
Several figures and macro-constructions examples are available
 
49
in the /usr/share/drgeo/examples folder.
 
50
 
 
51
More information about Dr. Geo can be found at
 
52
its web site http://www.gnu.org/software/dr_geo/dr_geo.html
 
53
 
 
54
Installing the drgeo-doc package is also encouraged to get
 
55
more of Dr. Geo.
 
56
"""
 
57
 
 
58
# totem
 
59
d3 = """
 
60
Totem is a simple yet featureful media player for GNOME which can read
 
61
a large number of file formats. It features :
 
62
.
 
63
   * Shoutcast, m3u, asx, SMIL and ra playlists support
 
64
   * DVD (with menus), VCD and Digital CD (with CDDB) playback
 
65
   * TV-Out configuration with optional resolution switching
 
66
   * 4.0, 5.0, 5.1 and stereo audio output
 
67
   * Full-screen mode (move your mouse and you get nice controls) with
 
68
     Xinerama, dual-head and RandR support
 
69
   * Aspect ratio toggling, scaling based on the video's original size
 
70
   * Full keyboard control
 
71
   * Simple playlist with repeat mode and saving feature
 
72
   * GNOME, Nautilus and GIO integration
 
73
   * Screenshot of the current movie
 
74
   * Brightness and Contrast control
 
75
   * Visualisation plugin when playing audio-only files
 
76
   * Video thumbnailer for nautilus
 
77
   * Nautilus properties page
 
78
   * Works on remote displays
 
79
   * DVD, VCD and OGG/OGM subtitles with automatic language selection
 
80
   * Extensible with plugins
 
81
"""
 
82
 
 
83
for decr in [d1, d2, d3]:
 
84
    html_descr = "\n".join(htmlize_package_desc(decr))
 
85
    print html_descr