From: Ian MacColl <ianm@dc...> - 2002-07-14 17:02:01
I'm about to start working on some MoinMoin extensions to support what
we want to do in the EQUATOR city wiki
In the meantime, I think I've noticed a small problem with MoinMoin
(1.1, 1.0 and possibly 0.11 and earlier). Please let me know if this
email should go elsewhere.
It seems as though the first heading in a wiki text page is formatted as
H1, regardless of the number of = characters used. This seems to be done
to support numbering. Tracing seems to indicate the following:
* method _heading_repl in wiki parser calls formatter with correct
* method heading in HTML formatter gets correct depth but changes it
* self._base_depth is initially 0 so it's assigned depth
* then depth is set to 1 by max(depth - (self._base_depth - 1), 1)
* finally, the returned value contains depth (now 1)
Am I missing something? Is this desirable for non-numbering?
For now, I've moved the assignment to depth to the start of the body of
the if that handles section numbers. This seem to work OK, leaving the
heading depth as written if section numbers are off, and adjusting the
first heading to H1 if section numbers are on. Is there a better way?
From: Juergen Hermann <jh@we...> - 2002-07-15 07:48:57
On Sun, 14 Jul 2002 18:02:46 +0100, Ian MacColl wrote:
>It seems as though the first heading in a wiki text page is formatted a=
>H1, regardless of the number of =3D characters used.
This is know and will be fixed.