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

Consecutive and leading whitespace is not shown in console output #1895

Closed
rschaeuble opened this issue Jun 3, 2024 · 0 comments · Fixed by #1896
Closed

Consecutive and leading whitespace is not shown in console output #1895

rschaeuble opened this issue Jun 3, 2024 · 0 comments · Fixed by #1896
Labels
⚡ Type: Bug Something isn't working

Comments

@rschaeuble
Copy link
Contributor

Mainsail Version:

2.11.2

Browser:

Chrome

Device:

Desktop PC

Operating System:

macOS

What happened?

Define this macro to reproduce:

[gcode_macro TEXT_WITH_WHITESPACE]
gcode:
  {action_respond_info("|123|")}
  {action_respond_info("|   |")}
  {action_respond_info("   |   |")}

Expected output:

|123|
|   |
   |   |

Actual output:

|123|
| |
| |

The reason is that HTML by default collapses whitespace. By adding white-space: pre-wrap, this can be avoided.

What did you expect to happen instead?

See above

How to reproduce this bug?

See above

Additional information:

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant