Opened 4 years ago

Closed 4 years ago

Error displayed when using new *CodeExamplePath syntax

Reported by: Owned by: rjollos nuald normal CodeExampleMacro normal 0.11

Description

Here is the example markup I used:

{{{
#!GoodCodeExamplePath
#!python
path=test/dir1/file1
regex="def update_statusbar"
lines=3
}}}


I will attach the file I used as well.

Here is what I see when testing with Trac 0.12dev-r9098 and Trac 0.11.7stable-r9170, which are the latest development versions as of today.

comment:1 Changed 4 years ago by rjollos

The screen capture I posted in the description was slightly misleading because the specified code block was shown after the error was display.

Turns out this is because the code block I was searching for was lines 1-3 in the file. If I change lines 1-3, then I get the same error but a different section of code displayed.

comment:2 Changed 4 years ago by nuald

• Status changed from new to assigned

comment:3 Changed 4 years ago by nuald

• Resolution set to fixed
• Status changed from assigned to closed

Fixed in r7630.

Modify Ticket

Change Properties