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

PHPOffice / PHPPresentation / 32959932988
95%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2026 10:50AM UTC
Jobs 1
Files 141
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

26 Aug 2026 10:46AM UTC coverage: 93.42% (+0.04%) from 93.383%
32959932988

push

github

web-flow
ODPresentation Writer : Share one automatic style between everything that writes it (#935)

The writer named a paragraph style `P_` plus the hash of the paragraph and a
text style `T_` plus the hash of the run. `getHashCode()` is the identity of
the *content*: two paragraphs styled alike but holding different text hash
differently, which is every paragraph of a real document. So the writer wrote
one definition per paragraph and one per run and shared nothing. On a slide
holding a 10x10 table and twenty text shapes that is 140 definitions for 140
references, and `content.xml` is 96 314 bytes.

Key the style on what it writes instead, and name it the way LibreOffice does
-- `P1`, `T1`, a prefix and a counter. The same document is now 2 definitions
and 54 805 bytes.

A generated name follows from the order the styles were added, so the pass
that writes the body cannot recompute it the way it recomputed a hash. It
reads it from a map keyed by the object wearing the style.

This also fixes a slide note referencing three styles nobody wrote. The pass
that collects styles walked the shapes of each slide and never the shapes of
its note, while the pass that writes the content walks both -- so a note named
a paragraph style, a text style and a graphic style that were not in the file,
and its shape put the counter the two passes share out of step.

A group inside a group is the same omission and it was already there: the pass
that collects styles walked a group but stopped at one nested in it, while the
pass that writes the content recurses. On `master` that leaves the shapes
inside three dangling references and the shape counter out of step from there
on; keyed on the object rather than on a counter, it stops being a wrong name
and becomes no name at all, so collecting them is what makes the pool work
rather than an improvement on top of it.

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

10605 of 11352 relevant lines covered (93.42%)

62.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32959932988.1 26 Aug 2026 10:50AM UTC 141
93.42
GitHub Action Run
Source Files on build 32959932988
  • Tree
  • List 141
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c6986a59 on github
  • Prev Build on master (#32958899149)
  • Next Build on master (#33003452766)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc