@@ -155,10 +155,12 @@ \subsection{Old classes}
155155supported for backward compatibility. New applications should use the
156156FieldStorage class.
157157
158- \code {SvFormContentDict}: single value form content as dictionary; assumes each
158+ \code {SvFormContentDict}
159+ single value form content as dictionary; assumes each
159160field name occurs in the form only once.
160161
161- \code {FormContentDict}: multiple value form content as dictionary (the form
162+ \code {FormContentDict}
163+ multiple value form content as dictionary (the form
162164items are lists of values). Useful if your form contains multiple
163165fields with the same name.
164166
@@ -175,18 +177,22 @@ \subsection{Functions}
175177some of the algorithms implemented in this module in other
176178circumstances.
177179
178- \begin {funcdesc }{parse}{fp}: Parse a query in the environment or from a file (default \code {sys.stdin}).
180+ \begin {funcdesc }{parse}{fp}
181+ Parse a query in the environment or from a file (default \code {sys.stdin}).
179182\end {funcdesc }
180183
181- \begin {funcdesc }{parse_qs}{qs}: parse a query string given as a string argument (data of type
184+ \begin {funcdesc }{parse_qs}{qs}
185+ parse a query string given as a string argument (data of type
182186\code {application/x-www-form-urlencoded}).
183187\end {funcdesc }
184188
185- \begin {funcdesc }{parse_multipart}{fp\, pdict}: parse input of type \code {multipart/form-data} (for
189+ \begin {funcdesc }{parse_multipart}{fp\, pdict}
190+ parse input of type \code {multipart/form-data} (for
186191file uploads). Arguments are \code {fp} for the input file and
187192 \code {pdict} for the dictionary containing other parameters of \code {content-type} header
188193
189- Returns a dictionary just like \code {parse_qs()}: keys are the field names, each
194+ Returns a dictionary just like \code {parse_qs()}
195+ keys are the field names, each
190196 value is a list of values for that field. This is easy to use but not
191197 much good if you are expecting megabytes to be uploaded -- in that case,
192198 use the \code {FieldStorage} class instead which is much more flexible. Note
@@ -197,29 +203,36 @@ \subsection{Functions}
197203 that.
198204\end {funcdesc }
199205
200- \begin {funcdesc }{parse_header}{string}: parse a header like \code {Content-type} into a main
206+ \begin {funcdesc }{parse_header}{string}
207+ parse a header like \code {Content-type} into a main
201208content-type and a dictionary of parameters.
202209\end {funcdesc }
203210
204- \begin {funcdesc }{test}{}: robust test CGI script, usable as main program.
211+ \begin {funcdesc }{test}{}
212+ robust test CGI script, usable as main program.
205213 Writes minimal HTTP headers and formats all information provided to
206214 the script in HTML form.
207215\end {funcdesc }
208216
209- \begin {funcdesc }{print_environ}{}: format the shell environment in HTML.
217+ \begin {funcdesc }{print_environ}{}
218+ format the shell environment in HTML.
210219\end {funcdesc }
211220
212- \begin {funcdesc }{print_form}{form}: format a form in HTML.
221+ \begin {funcdesc }{print_form}{form}
222+ format a form in HTML.
213223\end {funcdesc }
214224
215- \begin {funcdesc }{print_directory}{}: format the current directory in HTML.
225+ \begin {funcdesc }{print_directory}{}
226+ format the current directory in HTML.
216227\end {funcdesc }
217228
218- \begin {funcdesc }{print_environ_usage}{}: print a list of useful (used by CGI) environment variables in
229+ \begin {funcdesc }{print_environ_usage}{}
230+ print a list of useful (used by CGI) environment variables in
219231HTML.
220232\end {funcdesc }
221233
222- \begin {funcdesc }{escape}{s\optional {\, quote}}: convert the characters
234+ \begin {funcdesc }{escape}{s\optional {\, quote}}
235+ convert the characters
223236`` \code {\& }'' , `` \code {<}'' and `` \code {>}'' in string \var {s} to HTML-safe
224237sequences. Use this if you need to display text that might contain
225238such characters in HTML. If the optional flag \var {quote} is true,
0 commit comments