moriyoshi Tue Oct 29 10:05:08 2002 EDT
Modified files:
/php4/ext/standard html.c
Log:
WS fix
Index: php4/ext/standard/html.c
diff -u php4/ext/standard/html.c:1.60 php4/ext/standard/html.c:1.61
--- php4/ext/standard/html.c:1.60 Fri Oct 25 09:12:05 2002
+++ php4/ext/standard/html.c Tue Oct 29 10:05:07 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.60 2002/10/25 13:12:05 moriyoshi Exp $ */
+/* $Id: html.c,v 1.61 2002/10/29 15:05:07 moriyoshi Exp $ */
#include "php.h"
#include "reg.h"
@@ -345,7 +345,7 @@
MB_WRITE((unsigned char)this_char);
- switch (charset) {
+ switch (charset) {
case cs_utf_8:
{
unsigned long utf = 0;
@@ -634,8 +634,8 @@
int found = 0;
/* now walk the charset map and look for the codeset */
- for (i = 0; charset_map[i].codeset; i++) {
- if (strncasecmp(charset_hint, charset_map[i].codeset, len) ==
0) {
+ for (i = 0; charset_map[i].codeset; i++) {
+ if (strncasecmp(charset_hint, charset_map[i].codeset, len) ==
+0) {
charset = charset_map[i].charset;
found = 1;
break;
@@ -668,7 +668,7 @@
if (all) {
/* look for a match in the maps for this charset */
- for (j = 0; entity_map[j].charset != cs_terminator; j++) {
+ for (j = 0; entity_map[j].charset != cs_terminator; j++) {
if (entity_map[j].charset != charset)
continue;
@@ -701,7 +701,7 @@
}
}
- for (j = 0; basic_entities[j].charcode != 0; j++) {
+ for (j = 0; basic_entities[j].charcode != 0; j++) {
if (basic_entities[j].flags && (quote_style & basic_entities[j].flags)
== 0)
continue;
@@ -756,8 +756,7 @@
for (j = 0; entity_map[j].charset != cs_terminator; j++) {
if (entity_map[j].charset == charset
&& this_char >= entity_map[j].basechar
- && this_char <= entity_map[j].endchar)
- {
+ && this_char <= entity_map[j].endchar)
+{
rep = (unsigned
char*)entity_map[j].table[this_char - entity_map[j].basechar];
if (rep == NULL) {
/* there is no entity for this
position; fall through and
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php