def newline.crlf

bend-lint-rules@0.2.0.0 · layout/format.bend:2413

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base

2413def newline.crlf(crlf: Bool, eol: String, source: String) -> String:
2414  match crlf:
2415    case True{}:
2416      "\r\n"
2417    case False{}:
2418      newline.preserve(String.eq(eol, "preserve"), source)

Uses (4)

Used by (1)