Edgewall Software

Opened 8 years ago

Last modified 8 years ago

#12370 closed defect

ImageMacro: ValueError: invalid literal for int() with base 10: '10px' — at Initial Version

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: 1.0.12
Component: wiki system Version:
Severity: normal Keywords: imagemacro
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

From the logs:

[pid 10253 140015545095936] 2016-02-13 07:15:58,674 Trac[formatter] ERROR: Macro Image(icon_PyCharm.png, link=https://www.jetbrains.com/pycharm/, 35px, margin-right=10px, align=left) failed:
Traceback (most recent call last):
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 798, in _macro_formatter
    return macro.ensure_inline(macro.process(args))
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 375, in process
    text = self.processor(text)
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 347, in _macro_processor
    text)
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/macros.py", line 596, in expand_macro
    style[key] = ' %dpx' % int(val)
ValueError: invalid literal for int() with base 10: '10px'

Change History (0)

Note: See TracTickets for help on using tickets.