@@ -127,7 +127,6 @@ export async function collect(
127127 return concat ( chunks ) ;
128128}
129129
130- // CRLF, the canonical MIME line separator the stream is split on
131130const crlf = new Uint8Array ( [ 13 , 10 ] ) ;
132131
133132/** whether a character code is a hex digit (0-9, A-F, a-f) */
@@ -145,9 +144,8 @@ export function isHexDigit(code: number): boolean {
145144 * If quoted printable "lines" aren't escaped with an "=" then a new line needs
146145 * to be inserted. We use `newLine`, which defaults to CRLF to match the
147146 * canonical MIME form; pass a custom separator (e.g. a single "\n") to
148- * normalize instead. The separator is emitted between lines, never after the
149- * last one, since the CRLF preceding the MIME boundary belongs to the
150- * delimiter, not the body.
147+ * normalize instead. The separator goes between lines; the CRLF before the MIME
148+ * boundary belongs to the delimiter, not the body.
151149 */
152150export async function * decodeQuotedPrintable (
153151 lines : AsyncIterable < Uint8Array > ,
@@ -234,8 +232,8 @@ export async function* decodeBase64(
234232 * payload as-is. parseMhtml splits the stream on CRLF to find part boundaries,
235233 * so we re-insert `newLine` (defaulting to CRLF) between lines to restore the
236234 * original bytes exactly. Pass `newLine` (e.g. a single "\n") to normalize line
237- * endings instead. The separator is emitted between lines, never after the last
238- * one, since the CRLF preceding the boundary belongs to the delimiter.
235+ * endings instead. The separator goes between lines; the CRLF before the
236+ * boundary belongs to the delimiter, not the body .
239237 */
240238export async function * decodeIdentity (
241239 lines : AsyncIterable < Uint8Array > ,
0 commit comments