This file is indexed.

/usr/share/doc/python-htmlgen/html/HTMLgen-Heading.html is in python-htmlgen 2.2.2-12.3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>

<!-- This file generated using Python HTMLgen module. -->
<HEAD>
  <META NAME="GENERATOR" CONTENT="HTMLgen 2.2.2">
        <TITLE>Class Heading - Heading markups for H1 - H6</TITLE>

 <LINK rel=stylesheet href="HTMLgen.css" type=text/css title="HTMLgen.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" BACKGROUND="../image/bg-dots.gif" TEXT="#000000" LINK="#EE0000" VLINK="#990000">
<A HREF="HTMLgen-HR.html"><IMG src="../image/back.gif" height="22" width="66" alt="Previous" border="0"></A> 
<A HREF="HTMLgen-Href.html"><IMG src="../image/next.gif" height="22" width="66" alt="Next" border="0"></A> 
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif"> 
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif"> 
<H3>Class Heading - Heading markups for H1 - H6</H3>
<HR>

<H2>SYNOPSIS</H2>

<PRE>import HTMLgen</PRE>

<PRE>class Heading(AbstractTag)
  string __module__ = 'HTMLgen'
  def __str__(self)
  dictionary attr_dict = {'class': '', 'id': '', 'a ...
  string attr_template = '%(class)s%(id)s%(style)s% ...
  tuple attrs = ('class', 'id', 'style', ' ...
  string attr_template = ''

  # Methods inherited by Heading from AbstractTag
  <A HREF="#def __add__(self, other)">def __add__(self, other)</A>
  <A HREF="#def __call__(self, text)">def __call__(self, text)</A>
  def __init__(self, *contents, **kw)
  <A HREF="#def __len__(self)">def __len__(self)</A>
  <A HREF="#def __setattr__(self, name, value)">def __setattr__(self, name, value)</A>
  <A HREF="#def append(self, *items)">def append(self, *items)</A>
  <A HREF="#def copy(self)">def copy(self)</A>
  <A HREF="#def empty(self)">def empty(self)</A>
  <A HREF="#def last(self)">def last(self)</A>
  <A HREF="#def markup(self, rex=None, marker=None, **kw)">def markup(self, rex=None, marker=None, **kw)</A>
  <A HREF="#def prepend(self, *items)">def prepend(self, *items)</A>
</PRE>

<PRE>alias H = Heading
alias Head = Heading
alias Header = Heading
</PRE>

<H2>DESCRIPTION</H2>


<P>Heading(level, text, **kw)</P>


<P>The <EM>level</EM> arg is an integer for the level of the heading.
Valid levels are 1-6.
The <EM>text</EM> arg is a string (or any object) for the text of the heading.
Keyword arguments are align, Class, and style.</P>


<P>For example:
h = Heading(2, <CODE>Chapter 3</CODE>
, align='center')
</P>

<H3><A NAME="def __add__(self, other)">def __add__(self, other)</A></H3>


<P>Support self + list
</P>

<H3><A NAME="def __call__(self, text)">def __call__(self, text)</A></H3>


<P>Enable instances to be callable as text processing functions.</P>

<H4>For Example:</H4>

<PRE>  &gt;&gt;&gt; S = HTMLgen.Strong()
  &gt;&gt;&gt; print S('Hi!')
  &gt;&gt;&gt; &lt;STRONG&gt;Hi!&lt;/STRONG&gt;
</PRE>

<H3><A NAME="def __len__(self)">def __len__(self)</A></H3>


<P>Return the integer length of the container list.
</P>

<H3><A NAME="def __setattr__(self, name, value)">def __setattr__(self, name, value)</A></H3>


<P>Intercept attribute assignments.</P>


<P>If the attribute is a legal HTML tag attribute add it to the
dict used for substitution in __str__, otherwise just set it as
an instance attribute.
</P>

<H3><A NAME="def append(self, *items)">def append(self, *items)</A></H3>


<P>Append one or more items to the end of the container.
</P>

<H3><A NAME="def copy(self)">def copy(self)</A></H3>


<P>Return a full copy of the object.
</P>

<H3><A NAME="def empty(self)">def empty(self)</A></H3>


<P>Empty the contents of the container.
</P>

<H3><A NAME="def last(self)">def last(self)</A></H3>


<P>Return a reference to the last item in the container.
</P>

<H3><A NAME="def markup(self, rex=None, marker=None, **kw)">def markup(self, rex=None, marker=None, **kw)</A></H3>


<P>Markup the contained text matching a regular expression with
a tag class instance or function. </P>

<H4>Arguments</H4>

<DL>
<DT><B>    rex</B><DD>a regular expression object or pattern which will be used
        to match all text patterns in the Paragraph body. Must have a single
        group defined. Group 1 is the matching text that will be marked.
        Default to all parenthetical text.
<DT><B>    marker</B><DD>an HTMLgen class instance to which the found text will
        be sent for wrapping (using its __call__ method). Default is Emphasis.
</DL>

<H4>Keywords</H4>

<DL>
<DT><B>    collapse</B><DD>When set to 1 removes the non-grouped matching text
        from the output. Default 0.
</DL>


<P>Returns the number of matching text groups.
</P>

<H3><A NAME="def prepend(self, *items)">def prepend(self, *items)</A></H3>


<P>Prepend one or more items to the top of the container.
</P>

<H2>SEE ALSO</H2>


<P><A HREF="HTMLgen_overview.html">HTMLgen</A></P>


<P><A HREF="HTMLgen-AbstractTag.html">AbstractTag</A></P>


<P><HR>
<A HREF="HTMLgen-HR.html"><IMG src="../image/back.gif" height="22" width="66" alt="Previous" border="0"></A> 
<A HREF="HTMLgen-Href.html"><IMG src="../image/next.gif" height="22" width="66" alt="Next" border="0"></A> 
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif"> 
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif"> 
<BR><IMG src="../image/Buzz.gif" height="51" width="56" alt="Buzz.gif" align="bottom">
<FONT SIZE="-1"><P>Copyright &#169 Robin Friedrich<BR>All Rights Reserved<BR>

Comments to author: <A HREF="mailto:&#102;ri&#101;dr&#105;ch&#64;py&#116;ho&#110;pr&#111;s.&#99;om">friedrich@pythonpros.com</A><br>
Generated: Tue Apr 20, 1999 <BR><hr>
</FONT>
</BODY> </HTML>