Bug #192
indent prints strings without quotes
Status:
Closed
Priority:
Normal
Assignee:
Category:
Incomplete function
Target version:
Description
Compare these
/**/ Record[A := "1234"]; Record[A := "1234"] /**/ indent(It); Record[ A := 1234 ]
strings should be printed with quotes.
Related issues
History
#1
Updated by Anna Maria Bigatti about 12 years ago
- Target version set to CoCoA-5.0.3
- % Done changed from 0 to 50
#2
Updated by Anna Maria Bigatti about 12 years ago
Another problem
/**/ Record[A := "dsjfhak\"kfdakh"]; Record[A := "dsjfhak\"kfdakh"] /**/ indent(It); Record[ A := "dsjfhak"kfdakh" ]
John said in Mathematica the function InputForm prints something in a form that could be given as input. In this case printing a string in the definition of indent could be done with such a function.
#3
Updated by Anna Maria Bigatti almost 12 years ago
Write a function called InputForm (as in Mathematica) for printing strings with quotes and escaped characters
#4
Updated by Anna Maria Bigatti almost 12 years ago
- Status changed from New to In Progress
#5
Updated by Anna Maria Bigatti over 11 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
Apart from quotes inside strings it works.
I don't think it is very useful, but because of that I cannot consider this issue quite complete.
The needed work for fixing this case is not trivial, so I make a new issue for InputForm (#274), and close this one.