Lines Matching +refs:fill +refs:paragraph

571     wrap_loc = break_line(line->data, fill
636 if (after_break_len + next_line_len <= fill) {
888 * justify_format() might make paragraph->data shorter, and change the
892 * paragraph. skip should be at most strlen(paragraph->data). The
893 * character at paragraph[skip + 1] must not be blank. */
894 void justify_format(filestruct *paragraph, size_t skip)
903 assert(paragraph != NULL);
904 assert(paragraph->data != NULL);
905 assert(skip < strlen(paragraph->data));
906 assert(!is_blank_mbchar(paragraph->data + skip));
908 end = paragraph->data + skip;
909 new_paragraph_data = charalloc(strlen(paragraph->data) + 1);
910 strncpy(new_paragraph_data, paragraph->data, skip);
934 paragraph && openfile->mark_begin_x >= end -
935 paragraph->data)
989 paragraph && openfile->mark_begin_x >= end -
990 paragraph->data)
1022 free(paragraph->data);
1023 paragraph->data = new_paragraph_data;
1028 if (openfile->mark_set && openfile->mark_begin == paragraph) {
1079 * whether b_line could follow a_line in a paragraph. */
1090 /* Is foo the beginning of a paragraph?
1096 * A line is "part of a paragraph" if it has a part not in the quote
1099 * A line is "the beginning of a paragraph" if it is part of a
1100 * paragraph and
1102 * 2) the line above it is not part of a paragraph, or
1110 * then an indented line is expected to start a paragraph, as in
1111 * books. Thus, nano can justify an indented paragraph only if
1127 /* Not part of a paragraph. */
1150 /* Is foo inside a paragraph? */
1171 /* The top of the paragraph we're backing up. */
1173 /* The bottom of the paragraph we're backing up. */
1193 * paragraph. */
1198 * the paragraph, if there is one. */
1202 /* Move the paragraph from the current buffer's filestruct to the
1207 /* Copy the paragraph back to the current buffer's filestruct from
1211 /* Move upward from the last line of the paragraph to the first
1213 * same lines in the copied paragraph that they had in the original
1214 * paragraph. */
1242 /* Put current_x at the same place in the copied paragraph that it
1243 * had in the original paragraph. */
1249 /* Find the beginning of the current paragraph if we're in one, or the
1250 * beginning of the next paragraph if we're not. Afterwards, save the
1251 * quote length and paragraph length in *quote and *par. Return TRUE if
1252 * we found a paragraph, and FALSE if there was an error or we didn't
1253 * find a paragraph.
1256 * beginning of a paragraph. */
1260 /* Length of the initial quotation of the paragraph we search
1263 /* Number of lines in the paragraph we search for. */
1265 /* The line at the beginning of the paragraph we search for. */
1267 /* The y-coordinate at the beginning of the paragraph we search
1285 /* If the current line isn't in a paragraph, move forward to the
1286 * last line of the next paragraph, if any. */
1293 * last line of the next paragraph.
1295 * Otherwise, if we end up on a line that's in a paragraph, it
1297 * paragraph, in which case we should move back to the last line
1298 * of the next paragraph. */
1307 /* If the current line isn't the first line of the paragraph, move
1308 * back to the first line of the paragraph. */
1312 /* Now current is the first line of the paragraph. Set quote_len to
1314 * of lines in this paragraph. */
1324 * paragraph. */
1340 * the current paragraph. */
1344 /* Will be the first line of the justified paragraph(s), if any.
1348 * paragraph(s), if any. Also for restoring after unjustify. */
1351 * paragraph. */
1382 /* The first line of the current paragraph. */
1385 * paragraph. */
1388 * paragraph. */
1390 /* Number of lines in the current paragraph. */
1395 * indentation of the current paragraph. This is put at the
1397 * line of the paragraph. Note that this works because a
1398 * paragraph can only contain two indentations at most: the
1401 * when a line is part of a paragraph. */
1403 /* Find the first line of the paragraph to be justified. That
1404 * is the start of this paragraph if we're in one, or the start
1405 * of the next otherwise. Save the quote length and paragraph
1411 * paragraph, it means that we should justify all the way to the
1414 * loop. Otherwise, it means that there are no paragraph(s) to
1428 * paragraph. Set filebot_inpar to TRUE if this is the case. */
1432 /* If we haven't already done it, move the original paragraph(s)
1434 * paragraph(s) into the file in the same place, and set
1445 * paragraph. */
1451 /* Find the first indentation in the paragraph that doesn't
1479 /* Now tack all the lines of the paragraph together, skipping
1540 /* Call justify_format() on the paragraph, which will remove
1547 fill) {
1555 fill - strnlenpt(openfile->current->data, indent_len)
1578 /* If this paragraph is non-quoted, and autoindent isn't
1637 /* Renumber the lines of the now-justified current paragraph,
1642 /* We've just finished justifying the paragraph. If we're not
1650 /* We are now done justifying the paragraph or the file, so clean
1653 * the paragraph. */
1691 * text of the justified paragraph. */
1696 /* Remove the text of the justified paragraph, and
1705 * text again. Note that the justified paragraph has been
1706 * replaced with the unjustified paragraph. */
1749 /* Justify the current paragraph. */