[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    [SMARTY-DEV] patch for docs
From:       Konstantin <checat () pochtamt ! ru>
Date:       2003-04-25 13:02:29
[Download RAW message or body]

I've already pointed to this mistake in docs for
count_characters once upon a time.
So, I've made the patch. I don't have docbook-utils
to check, but it should be ok.


Konstantin A. Pelepelin


Index: designers.sgml
===================================================================
RCS file: /repository/smarty/docs/designers.sgml,v
retrieving revision 1.63
diff -u -r1.63 designers.sgml
--- designers.sgml	24 Apr 2003 07:43:11 -0000	1.63
+++ designers.sgml	25 Apr 2003 12:58:53 -0000
@@ -518,6 +518,34 @@
 		</sect1>
 		<sect1 id="language.modifier.count.characters">
 			<title>count_characters</title>
+            <informaltable frame=all>
+                <tgroup cols=6>
+                <colspec colname=param align=center>
+                <colspec colname=type align=center>
+                <colspec colname=required align=center>
+                <colspec colname=default align=center>
+                <colspec colname=desc>
+                <thead>
+                    <row>
+                        <entry>Parameter Position</entry>
+                        <entry>Type</entry>
+                        <entry>Required</entry>
+                        <entry>Default</entry>
+                        <entry>Description</entry>
+                    </row>
+                </thead>
+                <tbody>
+                    <row>
+                        <entry>1</entry>
+                        <entry>boolean</entry>
+                        <entry>No</entry>
+                        <entry>false</entry>
+                        <entry>This determines whether or not to include
+                        whitespace characters in the count.</entry>
+                    </row>
+                </tbody>
+                </tgroup>
+            </informaltable>
 			<para>
 			This is used to count the number of characters in a variable.
 			</para>
@@ -534,11 +562,13 @@
 
 {$articleTitle}
 {$articleTitle|count_characters}
+{$articleTitle|count_characters:true}
 
 OUTPUT:
 
 Cold Wave Linked to Temperatures.
-32</programlisting>
+29
+33</programlisting>
 </example>
 		</sect1>
 		<sect1 id="language.modifier.cat">


-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic