Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$TEXT returns source code lines with both carriage return and newline line terminators removed #159

Closed
shabiel opened this issue Feb 16, 2018 · 0 comments
Assignees
Milestone

Comments

@shabiel
Copy link
Contributor

shabiel commented Feb 16, 2018

Final Release Note

$TEXT() returns source code lines with both the carriage return and newline characters removed from routine files that have lines ending with . Previously, only the newline was removed.

Description

VADEMO201608>S X=$T(DD+2^DINIT0)

VADEMO201608>ZWRITE X
X=" ;;""SB"",.1,1"_$C(13)

VADEMO201608>W "^DD(0,"_$E($P(X," ",2),3,99)_")" 
)DD(0,"SB",.1,1
VADEMO201608>S Z="^DD(0,"_$E($P(X," ",2),3,99)_")"

VADEMO201608>ZWRITE Z
Z="^DD(0,""SB"",.1,1"_$C(13)_")"

Draft Release Note

When a DOS format source routine has lines returned by $TEXT(), both the carriage return and the newline characters are removed before the line is returned. Previously, only the newline was removed.

estess added a commit to estess/YottaDB that referenced this issue Apr 10, 2018
@nars1 nars1 added this to the r130 milestone May 7, 2018
@estess estess closed this as completed May 8, 2018
@ksbhaskar ksbhaskar changed the title $TEXT on Routines containing Windows Line Endings returns the $C(13) $TEXT returns source code lines with both carriage return and newline line terminators removed May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants