Visitar URL original
GH-1447: Reject self-closing AD markup tags as opening tags by rzo1 · Pull Request #1448 · apache/opennlp · GitHub
Skip to content

GH-1447: Reject self-closing AD markup tags as opening tags - #1448

Merged
rzo1 merged 1 commit into
mainfrom
gh-formats-cleanup
Oct 9, 2026
Merged

rzo1 merged 1 commit into
mainfrom
gh-formats-cleanup

Conversation

@rzo1

@rzo1 rzo1 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

The AD reader now treats every self-closing markup line, such as <s /> or <s id="1"/>, like <s/>: it no longer opens a sentence, paragraph, title, box or text. Tests pin the accepted and rejected tag forms, and the manual and README describe the rule. Compared with 3.0.0-M6, AD input that relied on such self-closing lines opening an element is read differently, which the README lists under breaking changes.

Fixes #1447

The AD reader no longer treats <s />, <s id="1"/> or any other tag with a
slash right before the closing angle bracket as an opening tag, matching
the existing handling of <s/>. Tests pin both sides, and the manual and
README describe the change.
@rzo1 rzo1 added this to the 3.0.0 milestone Oct 8, 2026
@rzo1 rzo1 self-assigned this Oct 8, 2026

@mawiesne mawiesne left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. No objections.

@mawiesne mawiesne added java Pull requests that update Java code breaking change Changes public API or behavior; needs a release note component: formats Corpus format readers labels Oct 8, 2026
@rzo1
rzo1 merged commit ce2da53 into main Oct 9, 2026
10 checks passed
@krickert
krickert deleted the gh-formats-cleanup branch October 11, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Changes public API or behavior; needs a release note component: formats Corpus format readers java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AD reader treats self-closing markup tags as opening tags

2 participants