Skip to content

Commit fae1d8d

Browse files
committed
chore: fix js dsl generation script
1 parent 1028dda commit fae1d8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/generate/dsl_js.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,10 @@ def _section_verifier(repo: Path, *, ts: bool = True) -> str:
752752
```"""
753753

754754

755-
def _read_example(path: Path, max_lines: int = 80) -> str:
755+
def _read_example(path: Path) -> str:
756756
if not path.exists():
757757
return ""
758-
return "\n".join(path.read_text(encoding="utf-8").splitlines()[:max_lines])
758+
return path.read_text(encoding="utf-8").rstrip()
759759

760760

761761
def _section_examples(repo: Path, *, ts: bool = True) -> str:

0 commit comments

Comments
 (0)