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

dcdpr / jp / 25150647990
66%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 06:24AM UTC
Jobs 1
Files 294
Run time 1min
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

30 Apr 2026 06:20AM UTC coverage: 64.672% (+0.02%) from 64.655%
25150647990

push

github

web-flow
fix(md): Prevent inline spans from bleeding across wrap breaks (#591)

When a wrap-break landed between the last breakable space and the
opening of an inline span (e.g. `**bold**`), the ANSI escapes recorded
past the break point were dropped via `self.escapes.clear()`. The
continuation line was then re-stylized using `attrs.restore_sequence()`,
which applied the full current attribute state — including attributes
that had not yet been opened in the visible text — to content that
should have remained unstyled.

The fix introduces `batch_initial_attrs`, which tracks the `AnsiState`
at the start of each wrap-buffer batch. During a wrap-break, escapes are
now partitioned by their offset: those at or before the break point are
replayed onto `batch_initial_attrs` to derive the true state at the
break, while escapes past the break point are carried forward onto the
new buffer with re-anchored offsets. The continuation line is then
restored to only the attributes that were actually active at the break.

The wrap-break logic has also been extracted into a dedicated
`wrap_break()` method, replacing the inline block that previously lived
inside `output()`.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

55 of 55 new or added lines in 1 file covered. (100.0%)

23999 of 37109 relevant lines covered (64.67%)

199.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25150647990.1 30 Apr 2026 06:24AM UTC 294
64.67
GitHub Action Run
Source Files on build 25150647990
  • Tree
  • List 294
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25150647990
  • b5bb5eff on github
  • Prev Build on main (#25150333329)
  • Next Build on main (#25178013449)
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