|
[Webware-checkins] CVS: Webware/PSP/Docs UsersGuide.html,1.9,1.10
From: Jay Love <jslove@us...> - 2002-02-24 15:16
|
Update of /cvsroot/webware/Webware/PSP/Docs In directory usw-pr-cvs1:/tmp/cvs-serv27444 Modified Files: UsersGuide.html Log Message: bump up version number Index: UsersGuide.html =================================================================== RCS file: /cvsroot/webware/Webware/PSP/Docs/UsersGuide.html,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** UsersGuide.html 24 Feb 2002 14:48:12 -0000 1.9 --- UsersGuide.html 24 Feb 2002 15:16:24 -0000 1.10 *************** *** 5,9 **** <body bgcolor='white'> <H1> Python Server Pages for Webware</h1> ! Release 0.5<br> <a href="http://webware.sourceforge.net">http://webware.sourceforge.net</a> <h2> Summary</h2> --- 5,9 ---- <body bgcolor='white'> <H1> Python Server Pages for Webware</h1> ! Release 0.7<br> <a href="http://webware.sourceforge.net">http://webware.sourceforge.net</a> <h2> Summary</h2> *************** *** 123,127 **** <p><b>Example</b> - <i> <%@ page indentSpaces="8" %></i> <p> ! <li><b><i><font color="blue">gobbleWhitespace</font></i></b> - The <i>gobblewhitespace</i> attribute of the <i>page</i> directive tells the PSP parser whether it can safely assume that whitespace characters that it finds between two script tags can be safely ignored. This is a special case directive. It applies when there are two script tags of some kind, and there is only whitespace characters between the two tags. If there is only whitespace, the parser will ignore the whitespace. This is necessary for multipart blocks to function correctly. For example, if you are writing an if/else block, you would have your first script block that starts the if, and then you would end that block and start a new script block that contains the else portion. If there is any whitespace between these two script blocks, and gobbleWhitespace is turned off, then the parser will add a write statement between the two blocks to output the whitespace into the page. The problem is that the write statement will have the indentation level of the start of the if block. So when the else statement starts, it will not be properly associated with the preceding if, and you'll get an error.<br> If you do need whitespace between two script blocks, use the &nbsp; code. --- 123,127 ---- <p><b>Example</b> - <i> <%@ page indentSpaces="8" %></i> <p> ! <li><b><i><font color="blue">gobbleWhitespace</font></i></b> - The <i>gobblewhitespace</i> attribute of the <i>page</i> directive tells the PSP parser whether it can safely assume that whitespace characters that it finds between two script tags can be safely ignored. This is a special case directive. It applies when there are two script tags of some kind, and there is only whitespace characters between the two tags. If there is only whitespace, the parser will ignore the whitespace. This is necessary for multipart blocks to function correctly. For example, if you are writing an if/else block, you would have your first script block that starts the if, and then you would end that block and start a new script block that contains the else portion. If there is any whitespace between these two script blocks, and gobbleWhitespace is turned off, then the parser will add a write statement between the two blocks to output the whitespace into the page. The problem is that the write statement will have the indentation level of the start of the if block. So when the else statement starts, it will not be properly associated with the preceding if, and you'll get an error.<br> If you do need whitespace between two script blocks, use the &nbsp; code. |
| Thread | Author | Date |
|---|---|---|
| [Webware-checkins] CVS: Webware/PSP/Docs UsersGuide.html,1.9,1.10 | Jay Love <jslove@us...> |