pimutils / khal

:calendar: CLI calendar application
https://lostpackets.de/khal/
MIT License
2.54k stars 197 forks source link

Alarm symbol in the agenda_event_format overflows line #1336

Open JBlocklove opened 4 months ago

JBlocklove commented 4 months ago

Describe the bug:

If the view.agenda_event_format variable has the {alarm-symbol} in it and an event has an alarm, it will push the final character (either the frame or the last character of the description) to the next line.

To Reproduce:

  1. Set view.frame to either color or width
  2. Have a calendar event with an alarm
  3. Highlight that event in the agenda view

Expected behavior:

The frame should bound the agenda with no gaps, regardless of the agenda_event_format variable.

Screenshots: Took a screencap to better show the issue. Unfortunately GitHub keeps saying the file is corrupted, so I uploaded it to YouTube. Link here: https://youtu.be/fzZ1AT6FZmE

OS, version, khal version and how you installed it:

[locale] timeformat = %H:%M dateformat = %Y-%m-%d longdateformat = %Y-%m-%d datetimeformat = %Y-%m-%d %H:%M longdatetimeformat = %Y-%m-%d %H:%M firstweekday = 6

[default] default_calendar = Test highlight_event_days = true enable_mouse = false

[highlight_days] color = ''

[view] frame = width



**Additional context**
I made a test calendar with the events shown in the video, including alarms and descriptions. 
[test-calendar.zip](https://github.com/pimutils/khal/files/14270636/test-calendar.zip)