From c15c6c49598cf3a3d8169efdd288e27db210cee5 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 5 May 2015 12:40:04 -0700 Subject: [PATCH] [minor] hljs css fix for html tags, {next}=blank if not found --- frappe/public/css/hljs.css | 2 +- frappe/website/template.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frappe/public/css/hljs.css b/frappe/public/css/hljs.css index a5c21784fa..eb568949c0 100644 --- a/frappe/public/css/hljs.css +++ b/frappe/public/css/hljs.css @@ -18,7 +18,7 @@ Original style from softwaremaniacs.org (c) Ivan Sagalaev '+_("Next")+': {title}

').format(**next_item) - out["content"] = out["content"].replace("{next}", html) + else: + html = "" + + out["content"] = out["content"].replace("{next}", html) def add_hero(out, context): """Add a hero element if specified in content or hooks.