kaushalmodi / ox-hugo

A carefully crafted Org exporter back-end for Hugo
https://ox-hugo.scripter.co
GNU General Public License v3.0
867 stars 130 forks source link

Incorrect auto calculated menu weights when running `C-c C-e H A` #642

Closed kaushalmodi closed 2 years ago

kaushalmodi commented 2 years ago

This issue was difficult to reproduce.. it occurred only when running C-c C-e H A and not when running C-c C-e H H!

While this bug was residing in ox-hugo for a while, it got triggered only when the test subtrees changes while working on https://github.com/kaushalmodi/ox-hugo/pull/641.

Reason

So when C-c C-e H A was run, it as possible that the original subtree location moved in the pre-processed buffer quite a bit, enough to result in incorrect menu weights.