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

core.colorize does not work with multiline strings #4543

Closed
cdqwertz opened this Issue Sep 23, 2016 · 4 comments

Comments

Projects
None yet
5 participants
@cdqwertz

cdqwertz commented Sep 23, 2016

This is the code I used:

minetest.chat_send_all(core.colorize("#0000ff","Line 1\nLine 2"))

The problem is that the first line will be blue but the second line will be white.

Minetest : 0.4.14-dev

@HybridDog

This comment has been minimized.

Show comment
Hide comment
@HybridDog

HybridDog Sep 24, 2016

Contributor

cdqwertz, does it work if you use \r instead of \n for line break?

Contributor

HybridDog commented Sep 24, 2016

cdqwertz, does it work if you use \r instead of \n for line break?

@red-001

This comment has been minimized.

Show comment
Hide comment
@red-001

red-001 Sep 24, 2016

Contributor

Yes it works if you use /r instead of /n However that's not a workaround because it mess up the formatting in full screen console mod.

Contributor

red-001 commented Sep 24, 2016

Yes it works if you use /r instead of /n However that's not a workaround because it mess up the formatting in full screen console mod.

@red-001

This comment has been minimized.

Show comment
Hide comment
@red-001

red-001 Sep 25, 2016

Contributor

@cdqwertz could you test does #4546 fix this issue?

Contributor

red-001 commented Sep 25, 2016

@cdqwertz could you test does #4546 fix this issue?

@nerzhul

This comment has been minimized.

Show comment
Hide comment
@nerzhul

nerzhul Mar 24, 2017

Member

Fixed

Member

nerzhul commented Mar 24, 2017

Fixed

@nerzhul nerzhul closed this Mar 24, 2017

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