Skip to content

Improve formatting (color and spaces) #67

@danthedaniel

Description

@danthedaniel
Image

Seen above:

  1. There is an alternative coloring technique where Minecraft sends a color code in the format of §[0-9a-f]. Most notably the + symbols should be green in the web chat.
  2. Sometimes repeated spaces are meaningful and are used for formatting.

Proposed solutions:

  1. Provide a separate formatting pass over text to scan for color formatting codes.
  2. A simple global find+replace on all text:
  • Find all occurrences of more than one consecutive space
  • Replace with an equal amount of   (non-breaking space XML entities)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions