From e1fd114a0eb93e0d04b2a01a1684146982948887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Dietrich?= Date: Sat, 8 Feb 2014 10:34:53 +0100 Subject: [PATCH] remove unnessecary replace from template, require white space after hash --- liquid_tags/pelicanhtml.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/liquid_tags/pelicanhtml.tpl b/liquid_tags/pelicanhtml.tpl index dbba638..b32a52b 100644 --- a/liquid_tags/pelicanhtml.tpl +++ b/liquid_tags/pelicanhtml.tpl @@ -23,21 +23,21 @@ {%- endblock -%} {% block input %} -{% if "#" in cell.input %} +{% if "# " in cell.input %}
Expand Code
-{% elif "#" in cell.input %} +{% elif "# " in cell.input %}
Collapse Code
-{{ cell.input.replace("#\n", "") | highlight2html }} +{{ cell.input.replace("# \n", "") | highlight2html }}
{% else %}
-{{ cell.input.replace("#\n", "") | highlight2html }} +{{ cell.input | highlight2html }}
{% endif %} {%- endblock input %}