MCPcopy Create free account
hub / github.com/coreutils/coreutils / set_other_indent

Function set_other_indent

src/fmt.c:524–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522 and other global variables. */
523
524static void
525set_other_indent (bool same_paragraph)
526{
527 if (split)
528 other_indent = first_indent;
529 else if (crown)
530 {
531 other_indent = (same_paragraph ? in_column : first_indent);
532 }
533 else if (tagged)
534 {
535 if (same_paragraph && in_column != first_indent)
536 {
537 other_indent = in_column;
538 }
539
540 /* Only one line: use the secondary indent from last time if it
541 splits, or 0 if there have been no multi-line paragraphs in the
542 input so far. But if these rules make the two indents the same,
543 pick a new secondary indent. */
544
545 else if (other_indent == first_indent)
546 other_indent = first_indent == 0 ? DEF_INDENT : 0;
547 }
548 else
549 {
550 other_indent = first_indent;
551 }
552}
553
554/* Read a paragraph from input file F. A paragraph consists of a
555 maximal number of non-blank (excluding any prefix) lines subject to:

Callers 2

get_paragraphFunction · 0.85
get_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected