minor cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1734 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-05-13 22:23:58 +00:00
parent 94e7094cee
commit f613ca78c6
1 changed files with 7 additions and 7 deletions

View File

@ -1894,19 +1894,19 @@ size_t indent_length(const char *line)
#endif /* !NANO_SMALL || !DISABLE_JUSTIFY */ #endif /* !NANO_SMALL || !DISABLE_JUSTIFY */
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
/* justify_format() replaces Tab by Space and multiple spaces by 1 (except /* justify_format() replaces Tab by Space and multiple spaces by 1
* it maintains 2 after a . ! or ?). Note the terminating \0 * (except it maintains 2 after a . ! or ?). Note the terminating \0
* counts as a space. * counts as a space.
* *
* If !changes_allowed and justify_format() needs to make a change, it * If changes_allowed is FALSE and justify_format() needs to make a
* returns 1, otherwise returns 0. * change, it returns 1, otherwise returns 0.
* *
* If changes_allowed, justify_format() might make line->data * If changes_allowed is TRUE, justify_format() might make line->data
* shorter, and change the actual pointer with null_at(). * shorter, and change the actual pointer with null_at().
* *
* justify_format() will not look at the first skip characters of line. * justify_format() will not look at the first skip characters of line.
* skip should be at most strlen(line->data). The skip+1st character must * skip should be at most strlen(line->data). The character at
* not be whitespace. */ * line[skip + 1] must not be whitespace. */
int justify_format(int changes_allowed, filestruct *line, size_t skip) int justify_format(int changes_allowed, filestruct *line, size_t skip)
{ {
const char *punct = ".?!"; const char *punct = ".?!";