cloud icon indicating copy to clipboard operation
cloud copied to clipboard

parsing of cell/string decorators can be too aggressive

Open williamstein opened this issue 10 years ago • 3 comments

The parsing of "cell/string" decorators is too aggressive, since this fails:

print("%s"
      % "hi")

but it should work

In [1]: print("%s"
   ...:       % "hi")
hi

williamstein avatar May 06 '14 19:05 williamstein

https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/github-issue-135.sagews

williamstein avatar Nov 29 '14 21:11 williamstein

To clarify -- this is only a bug that appears when using a Sage worksheet, e.g.,

https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-03-06-131639.sagews

williamstein avatar Mar 06 '15 21:03 williamstein

Sir, Well there has to be problem with new line character. We cannot continue our command in more than a single line even if we use a whitespace delimiter("") screenshot from 2015-03-07 03 34 00

detel avatar Mar 06 '15 22:03 detel