Project

General

Profile

Actions

Patch #26492

closed

% is not valid without a format specifier

Added by Pavel Rosický over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Roadmap
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

roadmap overview raises ArgumentError: incomplete format specifier on ruby 2.5 dev

as suggested on https://bugs.ruby-lang.org/issues/13761 it should be prepended with another '%'

'%0.0f%' % 45 - wrong
'%0.0f%%' % 45 - correct

patch included

Environment:
  Redmine version                3.4.1.stable
  Ruby version                   2.5.0-p-1 (2017-07-21) [x86_64-linux]
  Rails version                  4.2.9
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Git                            2.13.0
  Filesystem

Files

_overview.html.erb.patch (1.07 KB) _overview.html.erb.patch Pavel Rosický, 2017-07-21 11:40
Actions #1

Updated by Go MAEDA over 6 years ago

  • Category set to Roadmap
  • Target version set to 3.4.3

Certainly "%%" is correct to display a percent sign itself in sprintf format string.
Setting target version to 3.4.3.

Actions #2

Updated by Jean-Philippe Lang over 6 years ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang

Patch committed, thanks.

Actions #3

Updated by Jean-Philippe Lang over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF