1. Georg Brandl
  2. sphinx

Commits

georg.brandl  committed 9a95fd8

Fix precedence.

  • Participants
  • Parent commits 3c6ef40
  • Branches default

Comments (0)

Files changed (2)

File sphinx/templates/genindex-single.html

View file
  • Ignore whitespace
     {%- endfor %}
   </dl></dd>
   {%- endif -%}
-{%- set numitems = numitems + 1 + subitems|length -%}
+{%- set numitems = numitems + 1 + (subitems|length) -%}
 {%- if numcols < 2 and numitems > breakat -%}
 {%- set numcols = numcols+1 -%}
 </dl></td><td width="33%" valign="top"><dl>

File sphinx/templates/genindex.html

View file
  • Ignore whitespace
     {%- endfor %}
   </dl></dd>
   {%- endif -%}
-{%- set numitems = numitems + 1 + subitems|length -%}
+{%- set numitems = numitems + 1 + (subitems|length) -%}
 {%- if numcols < 2 and numitems > breakat -%}
 {%- set numcols = numcols+1 -%}
 </dl></td><td width="33%" valign="top"><dl>