MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / one_line

Function one_line

atomic-cli/src/commands/intent/graph.rs:412–416  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

410}
411
412fn one_line(text: &str) -> String {
413 text.chars()
414 .map(|c| if c.is_control() { ' ' } else { c })
415 .collect()
416}
417
418fn escape_html(text: &str) -> String {
419 text.replace('&', "&")

Callers 2

node_detailsFunction · 0.70
tree_labelFunction · 0.70

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected