Changeset 4d24650 for style.c


Ignore:
Timestamp:
Feb 4, 2011, 3:49:44 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
e062f97
Parents:
e3c8332
git-author:
David Benjamin <davidben@mit.edu> (01/25/11 00:18:14)
git-committer:
David Benjamin <davidben@mit.edu> (02/04/11 15:49:44)
Message:
Make owl_text_indent return a new string

You can't really use it correctly as it is.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • style.c

    r30da473 r4d24650  
    6565
    6666  /* indent and ensure ends with a newline */
    67   indent=owl_malloc(strlen(body)+(owl_text_num_lines(body))*OWL_TAB+10);
    68   owl_text_indent(indent, body, OWL_TAB);
     67  indent = owl_text_indent(body, OWL_TAB);
    6968  curlen = strlen(indent);
    7069  if (curlen==0 || indent[curlen-1] != '\n') {
Note: See TracChangeset for help on using the changeset viewer.