Skip to content

Commit 7786bd9

Browse files
committed
Modify whitespace issue check instructions.
1 parent 5e6260c commit 7786bd9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/playbook-guide.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ Remember these when checking language issues:
144144
and flag any that don't match the sentence's intended meaning or grammatical structure.
145145
- When reviewing lists, ensure all items are punctuated consistently, whether with commas, semicolons, or no punctuation at all.
146146
- When looking at the source code, understand that ' equals to apostrophe
147-
- Find space-will-be-missing issues when reviewing .tsx files. Carefully check every line that ends with a closing HTML tag (like `</em>`, `</strong>`,
148-
`</a>`, etc.) - if text continues on the immediately following line without any explicit space character or JSX space expression `{" "}`, this will cause missing spaces in the rendered output. See the examples below.
147+
- Find space-will-be-missing issues when reviewing .tsx files. In JSX, whitespace-only lines between text content are stripped. Only flag an issue if BOTH:
148+
1. A line ends with a closing tag (like `</em>`, `</strong>`, `</a>`) with nothing after it (no space, no `{" "}`, no other text) before the line break
149+
2. The next line starts with any other text than punctuation or an opening tag
150+
Do NOT flag if the closing tag is followed by space, `{" "}`, or any other text on the same line. See the examples below.
149151

150152
Space-will-be-missing issue examples
151153

0 commit comments

Comments
 (0)