Modify

Opened 6 years ago

Closed 6 years ago

Last modified 5 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

Description

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

  • LinenoMacro.py

     
    1111
    1212__all__ = ['LinenoMacro', 'LinenoAnnotator']
    1313
    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)
    1515
    1616class LinenoMacro(Component):
    1717    """Prints line numbered code listings"""

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by buaa.byl

Attachment: win32.patch added

A patch for work in windows

comment:1 Changed 6 years ago by buaa.byl

Resolution: fixed
Status: newclosed

comment:2 Changed 5 years ago by anonymous

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

comment:3 Changed 5 years ago by Ryan J Ollos

(In [11940])

Fixes #3680, #8329:

  • Use regular expression from trac 0.11's trac.wiki.parser 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
Action
as closed The owner will remain Adamansky Anton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.