Find and explain an extra space
Inspect the raw difference and keep the exact difference separate from a match with comparison rules.
For operators
Read these instructions on any device. Watch or practise a chapter on a desktop or laptop, with a desktop or mobile application layout. Demonstrations use sample data and simulated scanners.
Find and explain an extra space
- Start capture in the focused box
Start capture in the focused box.
Start capture explicitly. Only this box collects keyboard input. These keystrokes are simulated; the course does not measure a physical scanner.
- Scan a value with an extra space
Scan a value with an extra space.
This prepared input has one trailing ASCII space. Read the escaped text instead of judging by the visible barcode or number.
- Inspect what arrived
Inspect what arrived.
Step 2 shows exactly what arrived, in quotes, with hidden characters shown as codes. Leaving step 1 pauses capture.
- Keep the independent expectation exact
Keep the independent expectation exact.
The known encoded value has no trailing space, so the exact comparison shows a different value. That real difference must not be hidden by automatic trimming.
- Name the invisible characters
Name the invisible characters.
The inspector shows Unicode names and code points. It helps distinguish spaces and controls that an ordinary text view can hide.
- Open explicit comparison rules
Open explicit comparison rules.
Rules change a copy of the received text, in order. The original scan and the exact comparison remain visible. They do not reprogram the scanner.
- Add an explicit space-trimming rule
Add an explicit space-trimming rule.
The match with these rules is a separate result. The raw trailing space and the exact difference remain evidence of what arrived.