- Timestamp:
- Jul 9, 2002, 12:04:35 AM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 2c8a07c
- Parents:
- 10b866d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r1aee7d9 re1c4636 180 180 /* if it's a color read the color, set the current color and 181 181 continue */ 182 } else if (!strcasecmp(buff, "@color") && owl_global_get_hascolors(&g)) { 182 } else if (!strcasecmp(buff, "@color") 183 && owl_global_get_hascolors(&g) 184 && owl_global_is_colorztext(&g)) { 183 185 owl_free(buff); 184 186 txtptr+=7; … … 325 327 326 328 327 void owl_fmtext_print_plain(owl_fmtext *f, char *buff) { 328 strcpy(buff, f->textbuff); 329 /* caller is responsible for freeing */ 330 char *owl_fmtext_print_plain(owl_fmtext *f) { 331 return owl_strdup(f->textbuff); 332 } 333 334 /* strips formatting from ztext and returns the unformatted text. 335 * caller is responsible for freeing. */ 336 char *owl_fmtext_ztext_stylestrip(char *zt) { 337 owl_fmtext fm; 338 char *plaintext; 339 340 owl_fmtext_init_null(&fm); 341 owl_fmtext_append_ztext(&fm, zt); 342 plaintext = owl_fmtext_print_plain(&fm); 343 owl_fmtext_free(&fm); 344 return(plaintext); 329 345 } 330 346
Note: See TracChangeset
for help on using the changeset viewer.