legalnonsense/elgantt

How can I make my table align properly?

Opened this issue · 2 comments

Starting the test file gives me this screen, which seems to not align correctly:

Screenshot 2024-04-19 at 9 30 07 PM

I've tried changing the buffer's font, but that doesn't seem to do anything.

I haven't done anything to configure the package, except to set the start date, so I could use the test file.

I tried loading emacs using emacs -Q and then evaluating a buffer containing the following:

(add-to-list 'load-path (concat user-emacs-directory "straight/repos/peg/")) (add-to-list 'load-path (concat user-emacs-directory "straight/repos/compat/")) (add-to-list 'load-path (concat user-emacs-directory "straight/repos/org-ql/")) (add-to-list 'load-path (concat user-emacs-directory "straight/repos/s.el/")) (add-to-list 'load-path (concat user-emacs-directory "straight/repos/ts.el/")) (add-to-list 'load-path (concat user-emacs-directory "straight/repos/dash.el/")) (add-to-list 'load-path (concat user-emacs-directory "straight/repos/elgantt/")) ;; Or wherever it is located (require 'elgantt) (setq elgantt-agenda-files (concat user-emacs-directory "straight/repos/elgantt/test.org"))

Still see the same result as the screenshot above. Same thing as well if I git clone elgantt into .emacs.d/lisp and work from there.

macOS Sonoma running GNU Emacs 29.3 (build 1, aarch64-apple-darwin23.4.0, NS appkit-2487.50 Version 14.4.1 (Build 23E224)) of 2024-04-13

Calling font-lock-fontify-buffer fixes the alignment issue for me. Somewhere in the creating of the buffer, we'd need to call (font-lock-ensure), but I can't quite figure out how to add it at the moment.