Changeset 30da473
- Timestamp:
- Aug 2, 2010, 11:38:03 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- e0022d2
- Parents:
- 2b83ad6
- git-author:
- David Benjamin <davidben@mit.edu> (07/25/10 19:43:08)
- git-committer:
- David Benjamin <davidben@mit.edu> (08/02/10 23:38:03)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r2b83ad6 r30da473 389 389 if (c == '\t') { 390 390 /* Copy up to this tab */ 391 _owl_fmtext_append_fmtext(out, in, numcopied, ptr - in->textbuff - 1);391 _owl_fmtext_append_fmtext(out, in, numcopied, ptr - in->textbuff); 392 392 /* and then copy spaces for the tab. */ 393 393 chwidth = OWL_TAB_WIDTH - (col % OWL_TAB_WIDTH); … … 406 406 /* Append anything we've missed. */ 407 407 if (numcopied < in->textlen) 408 _owl_fmtext_append_fmtext(out, in, numcopied, in->textlen - 1);408 _owl_fmtext_append_fmtext(out, in, numcopied, in->textlen); 409 409 } 410 410 -
style.c
rb585ba2 r30da473 45 45 char *indent; 46 46 int curlen; 47 owl_fmtext with_tabs; 47 48 48 49 SV *sv = NULL; … … 72 73 } 73 74 75 owl_fmtext_init_null(&with_tabs); 74 76 /* fmtext_append. This needs to change */ 75 owl_fmtext_append_ztext(fm, indent); 77 owl_fmtext_append_ztext(&with_tabs, indent); 78 /* Expand tabs, taking the indent into account. Otherwise, tabs from the 79 * style display incorrectly due to our own indent. */ 80 owl_fmtext_expand_tabs(&with_tabs, fm, OWL_TAB_WIDTH - OWL_TAB); 81 owl_fmtext_cleanup(&with_tabs); 76 82 77 83 owl_free(indent);
Note: See TracChangeset
for help on using the changeset viewer.