Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#8329 closed defect (fixed)

Does not work in windows

Reported by: buaa.byl Owned by: Adamansky Anton
Priority: normal Component: LinenoMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11


\n will be \r\n in windows, so this macro not work fine.


    1212__all__ = ['LinenoMacro', 'LinenoAnnotator']
    14 SB_RB = re.compile(r"^#{1}!\w+\n", re.M)
     14SB_RB = re.compile(r"(^#{1}!\w+(\n){1,})|(^#{1}!\w+(\r\n){1,})", re.M)
    1616class LinenoMacro(Component):
    1717    """Prints line numbered code listings"""

Attachments (1)

win32.patch (362 bytes) - added by buaa.byl 7 years ago.
A patch for work in windows

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by buaa.byl

Attachment: win32.patch added

A patch for work in windows

comment:1 Changed 7 years ago by buaa.byl

Resolution: fixed
Status: newclosed

comment:2 Changed 6 years ago by anonymous

Summary: Not work in windwos.Does not work in windows

comment:3 Changed 6 years ago by Ryan J Ollos

(In [11940])

Fixes #3680, #8329:

  • Use regular expression from trac 0.11's to match the processor type. This should fix incompatibility problems on Windows.
  • Organized imports.
  • Deleted empty 0.9 directory.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Adamansky Anton.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.