demarches-normaliennes/app/helpers/number_helper.rb

9 lines
280 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module NumberHelper
def number_with_html_delimiter(num)
# we are using the span delimiter that doesn't insert spaces when copying and pasting the number
number_with_delimiter(num, delimiter: tag.span(class: 'numbers-delimiter'))
end
end