pimutils / pimutils/khal

Format multiline description

Open
#845 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

khal list --format "{start-time} - {end-time} :: [{title}] {description}
gives for multiline description

08:45 - 10:20 :: [My title] Description line 1
Description line2
09:45 - 11:20 :: [My title2] Description line 1
Description line2

I.e. Second line of description is justified to the start time
Where I think the formatting should be:

08:45 - 10:20 :: [My title] Description line 1
                            Description line2
09:45 - 11:20 :: [My title2] Description line 1
                             Description line2

I.e. the multiline description should be "internally justified"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the output with the khal list --format command shown in the issue, then trace the CLI formatting entry point that renders multiline descriptions. Done means continuation lines are indented beneath the description text rather than aligned with the event start time, while subsequent events retain their existing alignment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.