Home / Function/ normalize_new_line() — svelte Function Reference

normalize_new_line() — svelte Function Reference

Architecture documentation for the normalize_new_line() function in html_equal.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  bcb4a799_b3e7_1c05_85fe_63bf9b925a94["normalize_new_line()"]
  7e13368c_af2f_099c_e7e1_de404629548f["html_equal.js"]
  bcb4a799_b3e7_1c05_85fe_63bf9b925a94 -->|defined in| 7e13368c_af2f_099c_e7e1_de404629548f
  1c541d89_49ad_09df_1b04_218f8bcb99e8["assert_html_equal_with_options()"]
  1c541d89_49ad_09df_1b04_218f8bcb99e8 -->|calls| bcb4a799_b3e7_1c05_85fe_63bf9b925a94
  style bcb4a799_b3e7_1c05_85fe_63bf9b925a94 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/html_equal.js lines 139–141

export function normalize_new_line(html) {
	return html.replace(/\r\n/g, '\n');
}

Domain

Subdomains

Frequently Asked Questions

What does normalize_new_line() do?
normalize_new_line() is a function in the svelte codebase, defined in packages/svelte/tests/html_equal.js.
Where is normalize_new_line() defined?
normalize_new_line() is defined in packages/svelte/tests/html_equal.js at line 139.
What calls normalize_new_line()?
normalize_new_line() is called by 1 function(s): assert_html_equal_with_options.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free