~ubuntu-branches/ubuntu/karmic/libapache2-mod-python/karmic-updates

« back to all changes in this revision

Viewing changes to test/htdocs/psp_parser.psp

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ozarowski
  • Date: 2007-02-21 18:24:29 UTC
  • mfrom: (1.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20070221182429-9okop7e0qpi24l85
Tags: 3.2.10-4
* Added XS-Vcs-Svn field
* Removed "db_purge" part from libapache2-mod-python.postrm
  (dh_installdebconf is generating a rule that will not fail if debconf is
  already removed)
* Added initial Spanish debconf translation from Manuel Porras Peralta.
  (closes: #411235)
* Added initial Portuguese debconf translation from Pedro Ribeiro.
  (closes: #411742)
* Added initial Galician debconf translation from Jacobo Tarrio.
  (closes: #411831)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<%-- $Id: psp_parser.psp 332353 2005-11-10 19:00:55Z jgallacher $ --%>
 
2
# format of this file
 
3
# Comment lines are ignored (python or psp).
 
4
# Lines beginning with test will be included, which 
 
5
# includes lines generated by python code.
 
6
# Blank lines are ignored.
 
7
#
 
8
# The test format is "test:expected_result:test_string$"
 
9
# where the string '$' is a token to indicate the end of the test line.
 
10
# The '$' character was chosen as it's unlikely to be in the output of
 
11
# the parser.
 
12
# In processing the expected_result,  the '-' character will be replace
 
13
# by the '\' character.
 
14
# The following substitutions will also be made in the expect_result
 
15
# LF    linefeed character
 
16
# CR    carriage-return character
 
17
# TB    tab character
 
18
 
 
19
 
 
20
# BEGIN$
 
21
test:-n:\n$
 
22
test:-r:\r$
 
23
test:-t:\t$
 
24
test:-r-n:\r\n$
 
25
<%
 
26
req.write("test:-n:\\n$")
 
27
%>
 
28
 
 
29
<%
 
30
test_str='single_quotes'
 
31
%>
 
32
test:'single_quotes':'<%= test_str %>'$
 
33
<%
 
34
test_str='double_quotes'
 
35
%>
 
36
test:"double_quotes":"<%= test_str %>"$