MCPcopy Create free account
hub / github.com/GCWing/BitFun / wrap_display_lines

Function wrap_display_lines

src/apps/cli/src/ui/tool_cards.rs:270–280  ·  view source on GitHub ↗
(text: &str, max_width: usize)

Source from the content-addressed store, hash-verified

268}
269
270fn wrap_display_lines(text: &str, max_width: usize) -> Vec<String> {
271 let mut out = Vec::new();
272 for raw in text.lines() {
273 let sanitized = raw.replace('\t', " ");
274 out.extend(wrap_to_display_width(&sanitized, max_width));
275 }
276 if out.is_empty() {
277 out.push(String::new());
278 }
279 out
280}
281
282/// Dispatch to the appropriate inline renderer
283fn render_inline_dispatch(

Callers 10

render_inline_dispatchFunction · 0.85
render_edit_blockFunction · 0.85
render_write_blockFunction · 0.85
render_delete_blockFunction · 0.85
render_task_blockFunction · 0.85
render_question_blockFunction · 0.85
render_plan_blockFunction · 0.85
render_generic_blockFunction · 0.85
assemble_blockFunction · 0.85

Calls 4

wrap_to_display_widthFunction · 0.85
replaceMethod · 0.65
is_emptyMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected