Skip to content

[BUG] Outline Numbering sequence is off after 4th heading #248

@DutchPete

Description

@DutchPete

Script name

Outline Numbering

Script authors

@Jerksen

Expected behavior

Correct, sequential/decimal numbering

Actual behavior

QON-bug

Another related issue is I had an empty note with these pre-numbered headings:

image

I then added a new, 3-hash heading:

image

I subsequently ran the script to update outline numbers. This is what I got:

image

Steps to reproduce

  1. take a note with unnumbered headings and subheadings
  2. apply the script

Output from the debug section in the settings dialog

The output is 561 lines, which includes everything. Here is the log section relating to the script after running it to get the result in the 1st screenshot:

Script Outline Numbering

id: 4
path: /home/user1/.var/app/org.qownnotes.QOwnNotes/data/PBE/QOwnNotes/scripts/outline-numbering/outline-numbering.qml
variablesJson:

{
}

identifier: outline-numbering
version: 1.0.0
minAppVersion: 20.5.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions