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>
 | 
					    <p><a href="{{ url_for('.home') }}">back to index</a></p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div class="well" id="text">
 | 
					    <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 -%}
 | 
					      {%- for start, line in add_highlight(doc.text, span_start, span_length) if line -%}
 | 
				
			||||||
        <p data-start="{{ start }}">
 | 
					        <p data-start="{{ start }}">
 | 
				
			||||||
          {% for i in line %}
 | 
					          {% for i in line %}
 | 
				
			||||||
            {%- if i.highlight -%}
 | 
					            {%- 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>
 | 
					                <span class="highlight">{{- nbsp_at_start(i.highlight) -}}</span>
 | 
				
			||||||
              {% endif %}
 | 
					              {%- endif -%}
 | 
				
			||||||
            {%- else -%}
 | 
					            {%- else -%}
 | 
				
			||||||
              {{- nbsp_at_start(i.text) -}}
 | 
					              {{- nbsp_at_start(i.text) -}}
 | 
				
			||||||
            {%- endif -%}
 | 
					            {%- endif -%}
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,7 @@ div#text { font-family: Courier; }
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    </div>
 | 
					    </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>
 | 
					      <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>
 | 
					      <p id="span-selector" class="hidden">span: <span id="span"></span></p>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue