Edgewall Software

Opened 8 years ago

Last modified 8 years ago

#12580 closed defect

Improving print_table() with data included newline characters — at Initial Version

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.0.13
Component: general Version:
Severity: normal Keywords: macosx
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Currently, print_table() method doesn't work well with data included newline characters.

E.g. https://travis-ci.org/edgewall/trac/jobs/157393544#L235 (sys.version includes newline character on Mac OS X)

$ python -c 'import sys; print(repr(sys.version))'
'2.7.10 (default, Jul 14 2015, 19:46:27) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]'

Prooposed changes in [55d01beb5/jomae.git] (jomae.git@t12580).

Before the patch:

$ make python=27 status

Python: /venv/trac/py27/bin/python

  Package        Version
  --------------------------------------------------------------------------------------------------------------
  Python       : 2.7.10 (default, Jul 14 2015, 19:46:27)
  [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
  Setuptools   : 18.0.1
  Genshi       : 0.6 (without speedups)
  Babel        : not installed
  ...

After the patch:

$ make python=27 status

Python: /venv/trac/py27/bin/python

  Package        Version
  ---------------------------------------------------------------------
  Python       : 2.7.10 (default, Jul 14 2015, 19:46:27)
               : [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
  Setuptools   : 18.0.1
  Genshi       : 0.6 (without speedups)
  Babel        : not installed
  ...

Change History (0)

Note: See TracTickets for help on using tickets.