Changeset 5639bf2 for stylefunc.c
- Timestamp:
- Jun 21, 2003, 11:17:28 AM (21 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:
- be0a79f
- Parents:
- b1299da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylefunc.c
rc3ab155 r5639bf2 3 3 static const char fileIdent[] = "$Id$"; 4 4 5 /* In all of these functions, 'fm' is expected to already be 6 * initialized. 7 */ 8 5 9 void owl_stylefunc_basic(owl_fmtext *fm, owl_message *m) 6 10 { … … 109 113 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 110 114 owl_text_indent(indent, text, OWL_MSGTAB); 111 owl_fmtext_init_null(fm);112 115 owl_fmtext_append_normal(fm, OWL_TABSTR); 113 116 owl_fmtext_append_normal(fm, "To: "); … … 134 137 135 138 if (owl_message_is_loginout(m)) { 136 owl_fmtext_init_null(fm);137 139 owl_fmtext_append_normal(fm, OWL_TABSTR); 138 140 if (owl_message_is_login(m)) { … … 147 149 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 148 150 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 149 owl_fmtext_init_null(fm);150 151 owl_fmtext_append_bold(fm, OWL_TABSTR); 151 152 owl_fmtext_append_bold(fm, "AIM from "); … … 160 161 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 161 162 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 162 owl_fmtext_init_null(fm);163 163 owl_fmtext_append_normal(fm, OWL_TABSTR); 164 164 owl_fmtext_append_normal(fm, "AIM sent to "); … … 179 179 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 180 180 owl_text_indent(indent, text, OWL_MSGTAB); 181 owl_fmtext_init_null(fm);182 181 owl_fmtext_append_normal(fm, OWL_TABSTR); 183 182 owl_fmtext_append_bold(fm, "OWL ADMIN "); … … 222 221 223 222 /* set the message for printing */ 224 owl_fmtext_init_null(fm);225 223 owl_fmtext_append_normal(fm, OWL_TABSTR); 226 224 … … 301 299 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 302 300 owl_text_indent(indent, text, OWL_MSGTAB); 303 owl_fmtext_init_null(fm);304 301 owl_fmtext_append_normal(fm, OWL_TABSTR); 305 302 owl_fmtext_append_normal(fm, "Zephyr sent to "); … … 326 323 327 324 if (owl_message_is_loginout(m)) { 328 owl_fmtext_init_null(fm);329 325 owl_fmtext_append_normal(fm, OWL_TABSTR); 330 326 if (owl_message_is_login(m)) { … … 339 335 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 340 336 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 341 owl_fmtext_init_null(fm);342 337 owl_fmtext_append_bold(fm, OWL_TABSTR); 343 338 owl_fmtext_append_bold(fm, "AIM from "); … … 352 347 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 353 348 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 354 owl_fmtext_init_null(fm);355 349 owl_fmtext_append_normal(fm, OWL_TABSTR); 356 350 owl_fmtext_append_normal(fm, "AIM sent to "); … … 371 365 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 372 366 owl_text_indent(indent, text, OWL_MSGTAB); 373 owl_fmtext_init_null(fm);374 367 owl_fmtext_append_normal(fm, OWL_TABSTR); 375 368 owl_fmtext_append_bold(fm, "OWL ADMIN ");
Note: See TracChangeset
for help on using the changeset viewer.