I noticed log entries with number of repetitions per event growing over time,
especially in mixed setup containing both types of environments, some
configured to share authentication and one or more kept with regular,
non-shared authentication.

Web server restart reset this, but only to afterwards see it grow gain.
With this small change the implementation finally meets expectations.

Fixes #7826: Modified the regex to agree with that used for section headings in Trac 0.12.0. The [Edit] icons should now be attached to every line of markup that Trac identifies as a section heading, which the exception of a level 6 heading. The latter issue was noted in comment:4 of #7826 and it should be investigated further why SectionEditPlugin only looks at level 1-5 headings.

For both of these macros it's a real pain to discover and document history
and give proper credit to contributors due to considerable activity without
proper coodination and housekeeping in the repository.

Fixes #9627: Applied patch from falkb to adjust mainnav height to better match the height of the buttons for a default Trac installation. In the future, some proper CSS modifications might provide a better fix for this issue, but we don't know a better solution at the moment.

Fixes #7399, Refs #7680, #8877, #8953: Yet another attempt to fix invalid links when req.href = '/'. If the href for a menu item specifies a relative path, the trailing forward slashes are stripped from req.href() so that the two cases are handled: 1) req.href() is '/' and 2) req.href() is '/somepath'.

In my 6-ticket test case, this reduces the number of dependencies added
from 8 to 3. In general, I think that the potential arcs in a graph are
the number of nodes squared so in real-world data sets, this improvement
is likely even bigger.