Skip to content

Commit

Permalink
Move dollar signs to relh function
Browse files Browse the repository at this point in the history
  • Loading branch information
roed314 committed Sep 5, 2024
1 parent 4c1c99b commit 00463d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lmfdb/number_fields/templates/nf-show-field.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2> {{ KNOWL('nf.ideal_class_group', title='Class group') }} and {{ KNOWL('nf.
</p>
{% if nf.is_cm_field() %}
<p>
{{KNOWL('nf.relative_class_number','Relative class number')}}: ${{ nf.relh() }}$
{{KNOWL('nf.relative_class_number','Relative class number')}}: {{ nf.relh() }}
{{ info.grh_label|safe }}
</p>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/number_fields/web_number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def can_class_number(self):

def relh(self):
if self.haskey('relative_class_number'):
return self._data['relative_class_number']
return '$' + self._data['relative_class_number'] + '$'
return dnc

def is_null(self):
Expand Down

0 comments on commit 00463d9

Please sign in to comment.