From 159924dffc996f31b98fdd5fc6c845c984611ed0 Mon Sep 17 00:00:00 2001 From: spiders Date: Mon, 2 May 2022 16:25:10 -0700 Subject: [PATCH] fixed alignment bug, removed test print --- src/bubbles.rs | 18 +++++++++++++++--- src/main.rs | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/bubbles.rs b/src/bubbles.rs index 7b96a28..fbae935 100644 --- a/src/bubbles.rs +++ b/src/bubbles.rs @@ -44,13 +44,25 @@ fn bubble_from_lines(lines: Vec, min_length: usize) -> String { ) } n => { - bubble_body.push_str(&format!("/ {: 2 { for i in 1..n - 1 { - bubble_body.push_str(&format!("| {: