Opened 11 years ago

Closed 11 years ago

Last modified 4 years ago

#7969 closed defect (fixed)

escaped backslash at end of line in notebook

Reported by: wjp Owned by: timdumol
Priority: major Milestone: sage-4.3.2
Component: notebook Keywords:
Cc: Merged in: sagenb-0.7
Authors: Tim Dumol, Willem Jan Palenstijn Reviewers: Mitesh Patel
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

The following input in the notebook produces the wrong output:

%python
2+2
print """\
a\\
n
c
"""

It should return

a\
n
c

but instead prints

a

c

Attachments (1)

trac_7969-escaped-backslash.patch (1.5 KB) - added by timdumol 11 years ago.
Prevents end-of-line backslashse from being replaced in sage and python systems.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by wjp

  • Owner changed from was to timdumol

Changed 11 years ago by timdumol

Prevents end-of-line backslashse from being replaced in sage and python systems.

comment:2 Changed 11 years ago by timdumol

  • Status changed from new to needs_review

comment:3 Changed 11 years ago by timdumol

  • Authors set to Tim Dumol, Willem Palenstijn

comment:4 Changed 11 years ago by mpatel

  • Reviewers set to Mitesh Patel
  • Status changed from needs_review to positive_review

Fixes the example above and a few others I've tried. SageNB doctests pass.

comment:5 Changed 11 years ago by mpatel

  • Merged in set to sagenb-0.7
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:6 Changed 4 years ago by chapoton

  • Authors changed from Tim Dumol, Willem Palenstijn to Tim Dumol, Willem Jan Palenstijn
Note: See TracTickets for help on using tickets.