diff options
| author | SavagePeanut <sourcehut@lazytapir.com> | 2023-09-03 20:40:20 -0500 |
|---|---|---|
| committer | SavagePeanut <sourcehut@lazytapir.com> | 2023-09-03 20:40:20 -0500 |
| commit | f4b6a50903ec6d82daf414a448e0175d79293efb (patch) | |
| tree | b00247bc04fcb1b6cde8fcdb7d98ebc97cef9123 /src/telegram.rs | |
| parent | 788f64389f5479fcd23844740e7401a8a7870294 (diff) | |
fix newlines for matrix
Diffstat (limited to 'src/telegram.rs')
| -rw-r--r-- | src/telegram.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/telegram.rs b/src/telegram.rs index 0774143..b215885 100644 --- a/src/telegram.rs +++ b/src/telegram.rs @@ -15,7 +15,7 @@ const TELEGRAM_STYLES: &[(&'static str, &'static str)] = &[ ]; #[pyfunction] -pub fn parse_for_telegram(body: String) -> PyResult<(String, Vec<(String, usize, usize, String)>)> { +pub fn format_for_telegram(body: String) -> PyResult<(String, Vec<(String, usize, usize, String)>)> { let mut chars: Vec<char> = body.chars().collect(); if chars.len() < 1 { return Ok((body, Vec::with_capacity(0))); |
