• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gajus / table / 142 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 11 Jan 2019 05:30PM UTC
Files 21
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jan 2019 05:24PM UTC coverage: 73.567% (+0.8%) from 72.756%
142.1

push

travis-ci

gajus
feat: add support for wrapping with newlines (#88)

* Add support for wrapping with newlines

It can be useful to more accurately control formatting in table cells by
means of inserting newlines. For example, we can now put bulleted lists
or pretty-printed JSON objects in table cells.

This change makes it so that any '\n' characters encountered in the
cell's values will be translated into line breaks.

Implementation note: the cell wrapping logic that used to be duplicated
between `mapDataUsingRowHeightIndex` and `calculateCellHeight` has been
moved to `wrapCell` to be shared between them.

* Add test with color coding

* More readable way to write ANSI test

65 of 87 branches covered (74.71%)

Branch coverage included in aggregate %.

166 of 227 relevant lines covered (73.13%)

5.53 hits per line

Source Files on job 142.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 19
  • Travis Job 142.1
  • 3d1d8b95 on github
  • Prev Job for on master (#137.1)
  • Next Job for on master (#145.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc