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

stri_wrap /dynamic/ should ignore the cost of printing the last line #128

Closed
gagolews opened this Issue Dec 5, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@gagolews
Owner

gagolews commented Dec 5, 2014

x <- stri_paste(rep("\u0105\u0105\u0105\u0105\u0105", 5), collapse=" "); cat(stri_wrap(x, width = 14), sep="\n")
ąąąąą
ąąąąą ąąąąą
ąąąąą ąąąąą

vs

> x <- stri_paste(rep("\u0105\u0105\u0105\u0105\u0105", 5), collapse=" "); cat(stri_wrap(x, width = 14, cost=0), sep="\n")
ąąąąą ąąąąą
ąąąąą ąąąąą
ąąąąą

@gagolews gagolews self-assigned this Dec 5, 2014

@gagolews gagolews added this to the stringi-0.4 milestone Dec 5, 2014

@gagolews gagolews added invalid and removed high priority bug labels Dec 5, 2014

@gagolews gagolews closed this Dec 5, 2014

@gagolews gagolews changed the title from stri_wrap counts the number of bytes, not Unicode code points to stri_wrap /dynamic/ should ignore the cost of printing the last line Dec 5, 2014

@gagolews gagolews added enhancement and removed invalid labels Dec 5, 2014

@gagolews gagolews reopened this Dec 5, 2014

@gagolews gagolews closed this in c2dd9be Dec 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment