Allow character string/vector as page content with word-wrap and cont…#23
Merged
billdenney merged 1 commit intomainfrom Mar 25, 2026
Merged
Allow character string/vector as page content with word-wrap and cont…#23billdenney merged 1 commit intomainfrom
billdenney merged 1 commit intomainfrom
Conversation
…ent_just x$content (and bare x in export_tfl()) may now be a character string or vector. A character vector is collapsed with "\n" before rendering; long lines are word-wrapped to the content viewport width using the existing .wrap_text() infrastructure. - draw_content(): adds character branch; gains gp and content_just parameters - export_tfl_page(): adds content_just = "left" (match.arg-validated, per-page override via x$content_just); resolves gp$content via resolve_gp() - coerce_x_to_pagelist(): accepts bare character shorthand and character pg$content - Tests: 22 new tests across test-draw, test-export_tfl_page, test-validate, and test-integration; two existing tests updated for the new valid types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
…ent_just
x$content (and bare x in export_tfl()) may now be a character string or vector. A character vector is collapsed with "\n" before rendering; long lines are word-wrapped to the content viewport width using the existing .wrap_text() infrastructure.