diff --git a/sourcing/templates/view.html b/sourcing/templates/view.html index fb888e7..3a94b6d 100644 --- a/sourcing/templates/view.html +++ b/sourcing/templates/view.html @@ -19,14 +19,14 @@ div#text { font-family: Courier; }

back to index

- {% if span_start and span_length %} + {% if span_length %} {%- for start, line in add_highlight(doc.text, span_start, span_length) if line -%}

{% for i in line %} {%- if i.highlight -%} - {% if i.highlight != '\n' and i.highlight != '\r\n' %} + {%- if i.highlight != '\n' and i.highlight != '\r\n' -%} {{- nbsp_at_start(i.highlight) -}} - {% endif %} + {%- endif -%} {%- else -%} {{- nbsp_at_start(i.text) -}} {%- endif -%} @@ -42,7 +42,7 @@ div#text { font-family: Courier; } {% endif %}

- {% if doc.type == 'sourcedoc' and not (span_start and span_length) %} + {% if doc.type == 'sourcedoc' and not span_length %} show span selector {% endif %}