Skip to content

Conversation

@BurdetteLamar
Copy link
Member

Adds examples for trim modes.

@BurdetteLamar BurdetteLamar added the documentation Improvements or additions to documentation label Sep 15, 2025
@k0kubun k0kubun merged commit d9d73ed into ruby:master Sep 15, 2025
8 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Sep 15, 2025
(ruby/erb#69)

* [DOC] More on class �ERB

* [DOC] More on class �ERB

* More

* More

* More

ruby/erb@d9d73ed58e
# ```
#
# You can give `trim_mode: '<>'` to suppress the trailing newline
# for each line that both begins with `'<%'` and ends with `'%<'`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ends with '%>'?

#
# You can combine certain trim modes:
#
# - `'%-'`: Enable shorthand and omit each blank line ending with `'%>'`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ending with '-%>'?

@BurdetteLamar
Copy link
Member Author

Thanks, @nobu. Will fix these.

@junaruga
Copy link
Member

@BurdetteLamar Did you use an emoji or unicode in the commit messages on this PR such as "[DOC] More on class �ERB"? I don't want you to use such character in the commit message. Because I cannot understand what it is in the commit message. I also want you to consider using squash commit by rebase -i commit_hash to squash multiple commits to one commit next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants