Changeset 4d24650 for cmd.c


Ignore:
Timestamp:
Feb 4, 2011, 3:49:44 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, 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
  • cmd.c

    re3c8332 r4d24650  
    276276  if (cmd->usage && *cmd->usage) {
    277277    s = cmd->usage;
    278     indent = owl_malloc(strlen(s)+(owl_text_num_lines(s)+3)*OWL_TAB+1);
    279     owl_text_indent(indent, s, OWL_TAB);
     278    indent = owl_text_indent(s, OWL_TAB);
    280279    owl_fmtext_append_bold(fm, "\nSYNOPSIS\n");
    281280    owl_fmtext_append_normal(fm, indent);
     
    291290  if (cmd->description && *cmd->description) {
    292291    s = cmd->description;
    293     indent = owl_malloc(strlen(s)+(owl_text_num_lines(s)+3)*OWL_TAB+1);
    294     owl_text_indent(indent, s, OWL_TAB);
     292    indent = owl_text_indent(s, OWL_TAB);
    295293    owl_fmtext_append_bold(fm, "\nDESCRIPTION\n");
    296294    owl_fmtext_append_normal(fm, indent);
Note: See TracChangeset for help on using the changeset viewer.