Changeset 282ec9b
- Timestamp:
- Jul 9, 2003, 2:12:36 AM (20 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
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
rf1e629d r282ec9b 1 1 $Id$ 2 3 2.0.8-pre-3 4 Make sure that a newline is always at the end of messages 5 returned by perl style formatting functions. 6 Add owl::login to legacy variables populated for format_msg. 2 7 3 8 2.0.8-pre-2 -
owl.h
rf1e629d r282ec9b 21 21 static const char owl_h_fileIdent[] = "$Id$"; 22 22 23 #define OWL_VERSION 2.0.8-pre- 224 #define OWL_VERSION_STRING "2.0.8-pre- 2"23 #define OWL_VERSION 2.0.8-pre-3 24 #define OWL_VERSION_STRING "2.0.8-pre-3" 25 25 26 26 #define OWL_DEBUG 0 -
perlwrap.pm
rf1e629d r282ec9b 123 123 $owl::time = $m->time ; 124 124 $owl::host = $m->host ; 125 $owl::login = $m->login ; 125 126 if ($m->fields) { 126 127 @owl::fields = @{$m->fields}; -
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.