Description

Here is a part from HelpOnParsers page:

---Start example---

A ParserBase colorization parser understands the following arguments to a #FORMAT pi or a hashbang line. Just add those arguments after the name of the parser (#FORMAT python start=10 step=10 numbering=on or #!python numbering=off).

numbering
if line numbering should be added. defaults to 'on'. possible values: 'on', 'off' (no linenumbers, but javascript to add them), 'disable' (no line numbers at all)

---End example---

Actually there is no numbering option and you should use numbers otherwise.

Steps to reproduce

Compare this:

   1 def a

and this:

def a

Here is a part of parse_start_step function in ParserBase.py, you see no numbering here, only 'numbers'

  57         if attrs.get('numbers','"on"')[1:-1].lower() in ('off', 'false', 'no'):
  58             nums = 0
  59         elif attrs.get('numbers','"on"')[1:-1].lower() in ('none', 'disable'):
  60             nums = -1

Example

URL: HelpOnParsers

Component selection

Details

MoinMoin Version

1.5.8

Workaround

It's documentation bug.

Maybe it worth to add a page for people wondering why their numbering doesn't work.

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/HelpOnParsersPageMisleadingAboutLineNumbering (last edited 2007-10-29 19:07:36 by localhost)