Fix the thousand separator in order to copy/paste without space
This commit is contained in:
parent
cb952b3643
commit
9287188904
3 changed files with 12 additions and 1 deletions
6
app/helpers/number_helper.rb
Normal file
6
app/helpers/number_helper.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue