Feature-request: Add format-code for conditional newline
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.1k
- Forks
- 233
- Avg merge
- 1h 44m
- Merged PRs (30d)
- 1
Description
I would like to have a code for newline in formatstrings, which only prints a linefeed, if the line is not empty. For better Overview I like to have some information as url or location in a separate line but at the moment I get much empty lines if not every information is set.
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
Start by locating khal's format-string rendering and the existing newline-related format codes. Trace how empty and unset fields are rendered, then define the conditional newline behavior described in the issue. Done means a format code adds a linefeed only when the corresponding line contains information, without producing empty lines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100