-- Leo's gemini proxy
-- Connecting to typed-hole.org:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
commit 65cadcf06414e1044dc7e71c370fd68098faa960
Author: Julien Blanchard <julien@sideburns.eu>
Date: Tue Jul 30 17:07:57 2019 +0200
Replace tabs by spaces in text
Until https://github.com/gyscos/cursive/issues/363 is resolved
diff --git a/src/main.rs b/src/main.rs
index 5ec1801..d5d5741 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -214,7 +214,7 @@ fn draw_content(s: &mut Cursive, url: &str, content: String) {
main_view.add_item(formatted, link.url)
}
- Err(_) => main_view.add_item(line, "0".to_owned()),
+ Err(_) => main_view.add_item(str::replace(line, "\t", " "), "0".to_owned()),
}
}
---
Served by Pollux Gemini Server.
-- Response ended
-- Page fetched on Sun May 19 08:49:59 2024