Repository navigation
docs: Break lines at meaning boundaries - #559
Merged
Merged
Conversation
krlmlr
force-pushed
the
claude/sembr
branch
from
September 13, 2026 14:27
4741c22 to
8d695f2
Compare
krlmlr
force-pushed
the
claude/sembr
branch
3 times, most recently
from
September 13, 2026 18:37
5082bba to
fd05356
Compare
krlmlr
force-pushed
the
claude/sembr
branch
from
September 13, 2026 21:07
fd05356 to
eced493
Compare
Reformatting only, no wording changes: prose in README.md and the roxygen and inline comments under R/ now breaks at sentence and clause boundaries rather than wrapping to a fixed width. The payoff is sentence-level diffs. A reworded sentence touches one line instead of reflowing the paragraph around it, so review sees the change and not the rewrap. man/*.Rd is regenerated because roxygen2 passes source line breaks through to the .Rd. The rendered help is byte-identical -- checked with tools::Rd2txt() over every topic -- as is the rendered README. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
Inside a roxygen block the first line of a paragraph, and every tag line, keeps one space after `#'`; every continuation line of that paragraph now has two. The paragraph structure of the source becomes visible without reading ahead, and in packages that do not enable roxygen2 markdown the extra space is what carries a sentence gap across a line break. RMariaDB enables markdown (`Roxygen: list(markdown = TRUE)`), and commonmark strips leading whitespace from a paragraph's continuation lines, so here the indent reaches neither `man/*.Rd` nor the rendered help. Nothing is regenerated: roxygen2 writes no file, and `tools::Rd2txt()` is unchanged for every topic. That also settles what to do with a sentence pair separated by two spaces: it still has to share one line, because under markdown no leading-space, trailing-space or hard-break form survives into the `.Rd`, so breaking there would drop a space from the rendered help. RMariaDB has three such pairs and none of them is over the line length ceiling, so nothing had to be joined here in the first place. The generated `R/cpp11.R` is left untouched. Reformatting only, no wording changes: the words either side of the diff are identical once comment markers and whitespace are collapsed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
The two-space continuation indent never reached the `.Rd`. RMariaDB sets `Roxygen: list(markdown = TRUE)`, and commonmark strips the leading whitespace of a continuation line before roxygen2 writes the topic, so the indent changed no rendered output -- `man/` was byte-identical with it and without it. The indent was meant to carry the sentence gap, and it never did, so it comes out. This is `git revert` of the indent commit, not a substitution: that pass also normalised pre-existing three-space tag continuations down to two, and the revert puts them back at three. The long joined lines the sembr pass created stay as they are. Undoing those is a separate decision. man/ is left to CI, which regenerates it from these sources. A line break which follows the end of a sentence currently renders as one space rather than two. Restoring that gap needs a patched roxygen2, which is a separate decision and a separate pull request, so it is deliberately not part of this change. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr
force-pushed
the
claude/sembr
branch
from
September 14, 2026 05:25
d376046 to
9410159
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reformatting only, no wording changes. Prose in
README.mdand the roxygen and inline comments underR/now breaks at sentence and clause boundaries rather than wrapping to a fixed width.The payoff is sentence-level diffs. A reworded sentence touches one line instead of reflowing the paragraph around it, so review sees the change and not the rewrap.
README.mdis edited directly here — this package has noREADME.Rmd, so the markdown is the source rather than a build product.The last commit drops the two-space continuation indent an earlier revision introduced. That indent never reached the
.Rd: this package setsRoxygen: list(markdown = TRUE), and commonmark strips the leading whitespace of a continuation line before roxygen2 writes the topic, so it changed no rendered output.man/is left to CIman/is not edited by hand here. The.Rdfiles are generated output, so CI roxygenises and commits them itself — 11 regenerated.Rdfiles have already landed on this branch as an automated commit, which is why they appear in the diff. What is worth reviewing is still the sources alone.Verification
README.mdconverted to HTML with pandoc before and after — byte-identical.R/*.Rstill parses.One consequence, stated plainly
A line break which follows the end of a sentence currently renders as one space, not two, so writing one sentence per line drops the sentence gap from the rendered help. Restoring it needs a patched roxygen2, which is a separate decision: it is #563, stacked on top of this chain, and can be taken or left on its own. Without it, this change renders as the package renders today, minus that gap.
Left alone
R/cpp11.R— generated.R/export.R, the commented connection settings inR/default.R.One pre-existing roxygen warning is untouched and unrelated:
connect.R:75: @aliases must be only 1 line long.@aliaseswas not edited.Force-pushed: the first revision skipped the
@section Time zones:and@section Secure passwords:blocks inR/dbConnect_MariaDBDriver.R, which were still fixed-width wrapped. They are now reformatted here as well.Part of a fleet-wide pass. r-lib/here#195 is the reference PR, reviewed by hand before the rest were run.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m