Atom feeds can have non ascii chars in them
This commit is contained in:
parent
4c26214246
commit
3366f31943
|
@ -81,13 +81,10 @@ pub fn generate(
|
|||
let mut writer: Vec<u8> = Vec::new();
|
||||
xml.generate(&mut writer).unwrap();
|
||||
|
||||
let mut output_xml = String::new();
|
||||
|
||||
for e in writer {
|
||||
output_xml += &e.as_ascii().unwrap().to_string();
|
||||
}
|
||||
|
||||
output_xml
|
||||
|
||||
String::from_utf8(writer).unwrap()
|
||||
}
|
||||
|
||||
fn last_update(post_index: &Vec<crate::index::BlogPost>) -> i64 {
|
||||
|
|
Loading…
Reference in a new issue