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

gajus / table / 143 / 3
74%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/babel/traverse-7.26.3
DEFAULT BRANCH: master
Ran 11 Jan 2019 05:29PM UTC
Files 21
Run time 1s
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%. First build
143.3

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 143.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 20
  • Travis Job 143.3
  • 3d1d8b95 on github
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

© 2025 Coveralls, Inc