make some of them more consistent. (David Benbennick and DLR)
- Change some functions to take const char*'s instead of char*'s
where possible. (David Benbennick)
- - Tweak some #ifdefs to avoid warnings when compiling with
+ - Tweak some #ifdefs around indent_length() and references to
+ fill_flag_used to avoid warnings when compiling with
--disable-wrapping, --disable-justify, or a combination of the
two. (DLR)
- files.c:
#ifndef DISABLE_JUSTIFY
/* justify_format() replaces Tab by Space and multiple spaces by 1
- * (except it maintains 2 after a . ! or ?). Note the terminating \0
- * counts as a space.
+ * (except it maintains 2 after a character in punct followed by a
+ * character in brackets). Note that the terminating \0 counts as a
+ * space.
*
* justify_format() might make line->data shorter, and change the actual
* pointer with null_at().
while (current->prev != NULL && quotes_match(current->data,
quote_len, current->prev->data)) {
size_t temp_id_len =
- indent_length(current->prev->data + quote_len);
+ indent_length(current->prev->data + quote_len);
/* The indentation length of the previous line. */
/* Is this line the beginning of a paragraph, according to
const char *do_alt_speller(char *tempfile_name);
void do_spell(void);
#endif
-#if !defined(DISABLE_WRAPPING) && !defined(NANO_SMALL) || !defined(DISABLE_JUSTIFY)
+#if !defined(NANO_SMALL) || !defined(DISABLE_JUSTIFY)
size_t indent_length(const char *line);
#endif
#ifndef DISABLE_JUSTIFY