Modify ↓
#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
11 11 12 12 __all__ = ['LinenoMacro', 'LinenoAnnotator'] 13 13 14 SB_RB = re.compile(r" ^#{1}!\w+\n", re.M)14 SB_RB = re.compile(r"(^#{1}!\w+(\n){1,})|(^#{1}!\w+(\r\n){1,})", re.M) 15 15 16 16 class LinenoMacro(Component): 17 17 """Prints line numbered code listings"""
Attachments (1)
Change History (4)
Changed 15 years ago by
| Attachment: | win32.patch added |
|---|
comment:1 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 Changed 13 years ago by
| Summary: | Not work in windwos. → Does not work in windows |
|---|
comment:3 Changed 13 years ago by
Note: See
TracTickets for help on using
tickets.



A patch for work in windows