# HR-BR-1

Source: https://xmlvalid.com/rules/HR-BR-1

> Broj računa ne smije sadržavati bjeline (whitespace znakove)

- Level: error
- Rule sets: Croatian eRačun rules (UBL) 13.03.2026
- Context: `ubl-creditnote:CreditNote | ubl-invoice:Invoice`
- Test: `not(matches(/*/cbc:ID, '\s'))`

In English: The invoice number must not contain whitespace.

## Why it fails

- `cbc:ID` contains a space, tab or line break, often from a pretty-printer or a number like `2026 / 1`.

## How to fix it

- Write the invoice number without whitespace, for example `2026/1/1`.

Validate a document against these rules: https://xmlvalid.com/validate
