template fixes
This commit is contained in:
		
							parent
							
								
									af4d4151d3
								
							
						
					
					
						commit
						a49f8fc766
					
				| 
						 | 
				
			
			@ -19,14 +19,14 @@ div#text { font-family: Courier; }
 | 
			
		|||
    <p><a href="{{ url_for('.home') }}">back to index</a></p>
 | 
			
		||||
 | 
			
		||||
    <div class="well" id="text">
 | 
			
		||||
    {% if span_start and span_length %}
 | 
			
		||||
    {% if span_length %}
 | 
			
		||||
      {%- for start, line in add_highlight(doc.text, span_start, span_length) if line -%}
 | 
			
		||||
        <p data-start="{{ start }}">
 | 
			
		||||
          {% 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' -%}
 | 
			
		||||
                <span class="highlight">{{- nbsp_at_start(i.highlight) -}}</span>
 | 
			
		||||
              {% endif %}
 | 
			
		||||
              {%- endif -%}
 | 
			
		||||
            {%- else -%}
 | 
			
		||||
              {{- nbsp_at_start(i.text) -}}
 | 
			
		||||
            {%- endif -%}
 | 
			
		||||
| 
						 | 
				
			
			@ -42,7 +42,7 @@ div#text { font-family: Courier; }
 | 
			
		|||
    {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    {% if doc.type == 'sourcedoc' and not (span_start and span_length) %}
 | 
			
		||||
    {% if doc.type == 'sourcedoc' and not span_length %}
 | 
			
		||||
      <a href="#" id="show-span-selector" class="btn btn-default">show span selector</a>
 | 
			
		||||
      <p id="span-selector" class="hidden">span: <span id="span"></span></p>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue