1

I would like to htmlize my magit-log. When I try i get:

htmlize-get-text-with-display: Args out of range: " * ", 0, -3

Is there a workaround around?

1 Answer 1

1

Same here. Magit uses some overlay margin to display author/date and that is not handled properly by htmlize.

if you don't need the author/date margin, here's 2 way to disable it :

  • inside the log window press L then t
  • (setq magit-log-show-margin nil)

Edit: turns out that's not sufficent. if evaluate (defun magit-format-log-margin (&optional authordate)) (redefine as an empty function) it should work.

2
  • It would be nicer to fix this in htmlize.
    – npostavs
    Commented Dec 17, 2015 at 14:21
  • It worked!. I can copy the log-buffer to a new file buffer and htmlize that. The magin-stuff is gone, but the coloring and fonts is working. Commented Dec 18, 2015 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.