Changes in lib/misc.c [613cc55:a161d33]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/misc.c
r613cc55 ra161d33 112 112 { "gt", ">" }, 113 113 { "amp", "&" }, 114 { "apos", "'" }, 114 115 { "quot", "\"" }, 115 116 { "aacute", "á" }, … … 143 144 char *s = out, *cs; 144 145 int i, matched; 146 int taglen; 145 147 146 148 memset( out, 0, strlen( in ) + 1 ); … … 159 161 in ++; 160 162 163 taglen = in-cs-1; /* not <0 because the above loop runs at least once */ 161 164 if( *in ) 162 165 { 163 if( g_strncasecmp( cs+1, "br", 2) == 0 ) 166 if( g_strncasecmp( cs+1, "b", taglen) == 0 ) 167 *(s++) = '\x02'; 168 else if( g_strncasecmp( cs+1, "/b", taglen) == 0 ) 169 *(s++) = '\x02'; 170 else if( g_strncasecmp( cs+1, "i", taglen) == 0 ) 171 *(s++) = '\x1f'; 172 else if( g_strncasecmp( cs+1, "/i", taglen) == 0 ) 173 *(s++) = '\x1f'; 174 else if( g_strncasecmp( cs+1, "br", 2) == 0 ) 164 175 *(s++) = '\n'; 165 176 in ++;
Note: See TracChangeset
for help on using the changeset viewer.