Hello Mojang Team,
When words are in a long string such as a long word or link, they do not get wrapped correctly and therefore go onto a new line in the middle of the word or link.
There are a few ways that I have found that the issue can be reproduced:
The first one being here:
[media]tellraw @a {"text":"#########1 ########2 ########3 ########4 ","extra":[{"text":"some-text-without-spaces-here"}]}
And the second being here. The only difference is that even though there is color present, it seems to make no difference.
[media]tellraw @a {"text":"#########1 ########2 ########3 ########4 ","extra":[{"text":"some-text-without-spaces-here","color":"red"}]}
This is one more example of the formatting with a link and color involved.
[media]tellraw @a {"text":"","extra":[{"text":"Visit Google here: GOOOOOOOOOOOOGLE ","color":"white"},{"text":"http://goooooooooooooooooooooooooooooooogle.com","color":"dark_aqua"}]}
This is a real-world example on a CraftBukkit server using a plugin for Auto-Announcing messages to the Server. You see the "for" in the second message is white (or reset) and still seems to be getting not wrapped correctly.
[media]Attachments
Comments 10
It is not a Bukkit issue. All of those commands were tested in a vanilla minecraft world. The last part is just a real world example.
...can reproduce in 1.7.4 with the command provided.
The "extra"-part apparently doesn't do the lining properly, that's my suspicion.
I can reproduce this issue too. I think it's not exactly the "extra" tag, but more like word wrapping is only done when there are spaces in the text attribute of a part of the JSON. So if a single word near the end of the line is colored, it will wrap incorrectly.
It's a vanilla issue, but it does tend to be easier to reproduce with craftbukkit servers because of its CraftChatMessage implementation which transforms all the legacy § color codes to proper JSON, and also makes URLs clickable, so for example typing http://example.com generates this in bukkit:
{"text":"http://example.com","clickEvent":{"action":"open_url","value":"http://example.com"}}
So writing any url near the end of a line with a bukkit server with no plugins will result in this issue. Sending the generated json through /tellraw with a pure vanilla setup confirms that it's a bug in the vanilla client implementation.
If someone can come up with a test case that doesn't require /tellraw, that would be cool. I imagine that would be a translatable command reply that has a single word colored near the end of the line.
kumasa, You only pasted the words into chat. You did not use a command block and the tellraw. That's how you replicate it, using tellraw.
Can someone forward this on to the Minecraft Developers? There has been no response on the issue as to whether it's been resolved or otherwise.
No need to forward this, the developers are of course working on this bug tracker. Bugs are priorized on the number of votes, and this ticket has no many votes...
Is this still a concern in the current Minecraft version 14w30c or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Bukkit issue.