Project

General

Profile

Bug #2611

problems in UNDERLINE support for ChUI - stream/redirected mode

Added by Constantin Asofiei almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:

History

#1 Updated by Constantin Asofiei almost 9 years ago

  • Subject changed from problems in UNDERLINE support for ChUI to problems in UNDERLINE support for ChUI - stream/redirected mode

For a start, see the uast/frame_layout/redirected_underline.p test - the UNDERLINE (when it proceeds a DISPLAY, DOWN, etc) does not behave OK. More, if the frame is used again in a similar context (output to stream, UNDERLINE followed by DISPLAY), the output is completely different (although still wrong).

More cases to test, for redirected mode:
  • DOWN followed by UNDERLINE
  • DOWN 1 followed by UNDERLINE
  • DOWN,UNDERLINE,DISPLAY
  • UNDERLINE,DOWN,DISPLAY
  • UNDERLINE,DISPLAY
  • DISPLAY,UNDERLINE
  • etc

The problem here is with the implicit down() calls in GenericFrame.underline(int[]) - these force an implicit down for the next statement, which, when UNDERLINE is executed first, it adds extra empty lines (or in some cases none at all).

Also available in: Atom PDF