About Services Tools Blog Contact us

Size Chart Figure Repair

Closes broken size tables and replaces wrong measurements with the figures from each brand's own published size guide.

  • Data Merge & Cleaning
  • Footwear retail
  • Pipeline
  • Productised
  • Local/private
  • 2026

The problem

The generated size pages left some tables open and pushed product links into the middle of them. In several brands a column held the wrong measurement. Shoppers read those tables to choose a size, so a wrong figure meant a wrong order.

What it does

A first pass closes the broken tables and moves product links out of them, leaving the words alone. A second pass finds a known-bad table, checks that it still says what is expected, and replaces it with the measurements from that brand's published guide. Nothing is saved until the run is switched to save mode.

Outcomes

  • Broken tables are closed and the wording is unchanged.
  • A column that held the wrong measurement now shows the published figure.
  • Every changed page has a backup of the original.
  • Nothing is saved until someone switches on save mode.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Figure repair

Apply off
Open fragment table left open
<table> <caption>Men’s clothing</caption> <tr><td>XL (52)</td><td>106–111</td> <td>106–111 [style:lace-trainer] missing </td></tr></table>

Table 2 still contains “Typical fit”, so the published guide may replace it. The marker is lifted out. The words stay.

Waist column copies chest fabricated
UK / EUChest cmWaist cmFit
S (46)88–9388–93Slim youth
M (48)94–9994–99Tailored
L (50)100–105100–105Regular
XL (52)106–111106–111 [style:lace-trainer]Larger
Run
Apply is off. A preview will not write.

Conversion audit

1 contradiction
Tables read
0
Footwear charts skipped
Waist not under chest
0
Adult chart only
Cell faults
0
Marker inside a cell
Calder & Pine · men’s clothing · size L waist not under chest

Chest is 100–105 cm and the waist cell repeats 100–105 cm. On an adult chart the waist has to sit under the chest. Infant and footwear tables are not scored, because a match there can be genuine.

The published guide puts this waist at 88–93 cm. The repair preview uses that figure. This audit is the page as it stands, before Apply.

Cell fault marker in the body
BrandWhereFaultFix
Calder & PineXL waist cell[style:lace-trainer]Lift marker out

Backups

Write only with Apply
Originals kept before a write
WhenBrandFileSizeState
8 Oct 2026, 09:14Calder & Pine14.html18.4 KBstored
8 Oct 2026, 09:14Harbour Thread22.html11.2 KBstored
2 Oct 2026, 16:40Field & Loom31.html9.6 KBstored
This previewSelected brandnot written–Apply off
What a write does
  1. Copy the current HTML into the backup folder, named by brand id
  2. Update that brand only when the limiter is set
  3. Leave every other brand untouched

How it works

  1. Back up the brand's pages.
  2. Fix tables the generator left open and move product links out of them.
  3. Find a known-bad table and check its expected wording is still there.
  4. Replace that table with figures from the published guide.
  5. Limit the run to one brand when needed.
  6. Report conversion mismatches and broken table entries, and save only in save mode.

Pipeline

flowchart LR
  A[HTML] --> B[Backup]
  B --> C[CloseTables]
  C --> D[CheckPhrase]
  D --> E[Replace]
  E --> F[Audit]
  F --> G[Apply]