Project

General

Profile

Bug #1060

describe ring: add final newline

Added by John Abbott 10 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
enhancing/improving
Target version:
Start date:
05 May 2017
Due date:
% Done:

100%

Estimated time:
0.44 h
Spent time:

Description

In CoCoA-5, it might be nice if describe for a ring added a final newline.


Related issues

Related to CoCoA-5 - Feature #751: description of a RINGClosed2015-07-29

History

#1 Updated by John Abbott 10 months ago

#2 Updated by John Abbott 10 months ago

The problem can be exhibited by doing:

describe ZZ;

Relevant source code Interpreter.C:277-281
Why not print directly instead of putting it in a string?

#3 Updated by John Abbott 4 months ago

  • Status changed from New to Feedback
  • Assignee set to John Abbott
  • % Done changed from 0 to 90
  • Estimated time set to 0.44 h

I have modified Interpreter.C:281 by inserting a call to mem fn newline; now it is

  out->print(os.str())->newline()->flush();

Seems to work OK. Status -> feedback.

#4 Updated by John Abbott 3 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF