- Timestamp:
- Jul 9, 2003, 2:12:36 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:
- a7a42b9
- Parents:
- 5d9c664
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
style.c
rf1e629d r282ec9b 54 54 (* s->formatfunc)(fm, m); 55 55 } else if (s->type==OWL_STYLE_TYPE_PERL) { 56 char *body, *indent ;56 char *body, *indent, curlen; 57 57 58 58 /* run the perl function */ 59 59 body=owl_perlconfig_getmsg(m, 1, s->perlfuncname); 60 60 61 /* indent */62 indent=owl_malloc(strlen(body)+ owl_text_num_lines(body)*OWL_TAB+10);61 /* indent and ensure ends with a newline */ 62 indent=owl_malloc(strlen(body)+(owl_text_num_lines(body))*OWL_TAB+10); 63 63 owl_text_indent(indent, body, OWL_TAB); 64 64 curlen = strlen(indent); 65 if (curlen==0 || indent[curlen-1] != '\n') { 66 indent[curlen] = '\n'; 67 indent[curlen+1] = '\0'; 68 } 69 65 70 /* fmtext_append. This needs to change */ 66 71 owl_fmtext_append_ztext(fm, indent);
Note: See TracChangeset
for help on using the changeset viewer.