close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 19 years ago

#322 closed defect (invalid)

line jump

Reported by: sdelfresno Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: Text Version: head
Severity: normal Keywords:
Cc:

Description

If the following code in the Eval window is compiled:

WriteLn("h");
WriteLn("ERROR: Error "+NL);
WriteLn("h");
WriteLn("WARNING: Warning "+NL);
WriteLn("h");
WriteLn("Traza"+NL);
WriteLn("h");

It is obtained:

h

ERROR: Error

h

WARNING: Warning

h
Traza

h

The error is that if the WriteLn includes a message of 'error' or 'warning' it does
not make the jump of line that is indicated next.

Change History (3)

comment:1 Changed 20 years ago by Alfredo Torre

Just an explanation:

the problem arises when you try to show an error message:

WriteLn("<E>ERROR: Error </E>"+NL+NL+NL) instead of WriteLn("ERROR: Error "+NL);

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

comment:3 Changed 19 years ago by Víctor de Buen Remiro

Resolution: invalid
Status: newclosed

Sorry, it's not seems a problem due to TOL language but to TOLBase interface
interpreter of user messages enclosed between <E></E>. In tol.exe sentence
WriteLn("<E>ERROR: Error </E>"+NL+NL+NL) works fine.

Any way, you can avoid this problem writing
WriteLn("<E>ERROR: Error message error "+NL+NL+NL+"</E>");

Thanks to report it.

Note: See TracTickets for help on using tickets.