index : livejrnl-rs.git

ascending towards madness

author berrysweet <berrysweet@noreply.codeberg.org> 2023-07-07 21:48:48.0 +00:00:00
committer berrysweet <berrysweet@noreply.codeberg.org> 2023-07-07 21:48:48.0 +00:00:00
commit
3141f62c61b7124804ee50a6b32c18de65229fd7 [patch]
tree
4af778d30598f97c1c13660067914c111f3c588e
parent
30ed09c86200f57db39224725837157f0e4570bc
download
3141f62c61b7124804ee50a6b32c18de65229fd7.tar.gz

feat: strip blank lines on output html



Diff

 src/main.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main.rs b/src/main.rs
index 5c017e4..7a451e1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -49,6 +49,8 @@ fn main() {

			match std::fs::create_dir_all(&out_dir) {
				Ok(()) => {
					let html: Vec<&str> = html.lines().filter(|&line| !line.trim().is_empty()).collect();
					let html = html.join("\n");
					let write = std::fs::write(out_path, html);
					match write {
						Ok(()) => println!("All done!"),