diff options
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r-- | src/post_routes.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/post_routes.rs b/src/post_routes.rs index 8cbd3b2..392a024 100644 --- a/src/post_routes.rs +++ b/src/post_routes.rs @@ -363,8 +363,6 @@ async fn preview_edit<C: Controller>( let form: EditForm = body.into_form().await?; let new_text = form.text.replace("\r\n", "\n"); let mut page = edit_text_form(&form, None, controller, &ctx, parts); - - page.body - .push_str(&(get_renderer(&ctx.path).unwrap()(&new_text))); + get_renderer(&ctx.path).unwrap()(&new_text, &mut page); Ok(page.into()) } |