1# Native hyperlink boundary controls
2
3`notebook/fixture.json` is the independent authored input; `inputs/page-000.xml`
4records the submitted COM page. `read/page-001.xml` and its PDF are the native
5output. `read/environment.json` identifies the OneNote build and fresh clone;
6`teardown.json` records deletion. The original capture location links here.
7
8Ten labels isolate ASCII spaces, tabs, NBSP, EM space, literal HTML metacharacters,
9and line breaks. Native import places leading ASCII spaces/tabs outside the link,
10keeps trailing spaces/tabs inside it, and keeps NBSP linked at both ends. An
11all-space label has no link. EM spaces are removed during import. Newlines become
12stored CRs outside the hyperlink; the final CR is absent from exported HTML.
13
14Authored red foreground and underline do not survive this hyperlink import:
15native storage and exported XML use automatic foreground and no underline,
16including the leading unlinked text. Bold, 14-point font, and yellow highlight
17remain. These are native import observations, not transformations in the reader.
18
19`native_hyperlink_boundaries_preserve_whitespace_and_literal_labels` checks the
20stored visible text, linked text, exact destinations, and native formatting. The
21seeded-history comparator must apply the evidenced leading ASCII-space/tab rule
22to its independent expectation without stripping Unicode whitespace generally.