[Templates-cvs] cvs commit: Template2/docsrc/lib/option chomp
cvs@template-toolkit.org
cvs@template-toolkit.org
cvs 06/05/26 13:45:08
Modified: docsrc/lib/option chomp
Log:
Version 2.15
Revision Changes Path
1.3 +8 -8 Template2/docsrc/lib/option/chomp
Index: chomp
===================================================================
RCS file: /template-toolkit/Template2/docsrc/lib/option/chomp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- chomp 2006/05/25 08:22:34 1.2
+++ chomp 2006/05/26 13:45:08 1.3
@@ -27,9 +27,9 @@
The PRE_CHOMP and POST_CHOMP options can help to clean up some of this
extraneous whitespace. Both are disabled by default.
- my [* obj *] = [* pkg *]->new({
- PRE_CHOMP => 1,
- POST_CHOMP => 1,
+ my [* obj *] = [* pkg *]-E<gt>new({
+ PRE_CHOMP =E<gt> 1,
+ POST_CHOMP =E<gt> 1,
});
With PRE_CHOMP set to 1, the newline and whitespace preceding a directive
@@ -37,7 +37,7 @@
concatenating a line that starts with a directive onto the end of the
previous line.
- Foo <----------.
+ Foo E<lt>----------.
|
,---(PRE_CHOMP)----'
|
@@ -45,7 +45,7 @@
|
,---(POST_CHOMP)---'
|
- `-> Bar
+ `-E<gt> Bar
With POST_CHOMP set to 1, any whitespace after a directive up to and
including the newline will be deleted. This has the effect of joining
@@ -67,9 +67,9 @@
Additionally the chomp tag modifiers listed below may also be used for
the PRE_CHOMP and POST_CHOMP configuration.
- my $template = Template->new({
- PRE_CHOMP => '~',
- POST_CHOMP => '-',
+ my $template = Template-E<gt>new({
+ PRE_CHOMP =E<lt> '~',
+ POST_CHOMP =E<gt> '-',
});
PRE_CHOMP and POST_CHOMP can be activated for individual directives by