Question - Appending whitespaces intentionally
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 11.9k
- Forks
- 1.5k
- Avg merge
- 17h 55m
- Merged PRs (30d)
- 3
Description
Hi All,
is there a way to append whitespaces? I am trying to append whitespaces to a string if its length is not greater than "7".
Example:
myString = "Test12"
{{ myString | append: ' ' | slice: 0,7 }}
Expected output: "Test12 "
Actual output: "Test12"
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a file, test, or implementation entry point. First clarify whether this is a request to change Liquid's append or slice behavior, then identify the relevant behavior and add a test covering the expected whitespace output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100