Skip to content

Allow character string/vector as page content with word-wrap and cont…#23

Merged
billdenney merged 1 commit intomainfrom
feature/character-content
Mar 25, 2026
Merged

Allow character string/vector as page content with word-wrap and cont…#23
billdenney merged 1 commit intomainfrom
feature/character-content

Conversation

@billdenney
Copy link
Copy Markdown
Member

…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

…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>
@billdenney billdenney merged commit 696b342 into main Mar 25, 2026
9 checks passed
@billdenney billdenney deleted the feature/character-content branch March 25, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant