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

Multi-line text missing some whitespace #30

Open
mmakowski opened this issue Jan 10, 2025 · 5 comments
Open

Multi-line text missing some whitespace #30

mmakowski opened this issue Jan 10, 2025 · 5 comments

Comments

@mmakowski
Copy link

A multi-line text containing XML renders with some of the whitespace in text values missing, for example <title>NASASpaceStationNews</title> instead of <title>NASA Space Station News</title>.

UCM Desktop:
image

Unison Local:
image

  • UCM Desktop version: 1.0.0
  • UCM version: 0.5.31
  • OS: Linux, Ubuntu 24.10, Wayland
@hojberg
Copy link
Member

hojberg commented Jan 10, 2025

Wow thats bizarre. It's the same rendering code 🤔
BTW thanks for providing platform info.

@zetashift
Copy link

@hojberg I can reproduce it as well, but I'm also on Linux Wayland :P.

I tried to minimize the example, it seems to me that, if I have newlines in the multi line string then things seem to go awry:

-- this does render correctly
buildTime =
  """
  <title>NASA Space Station News</title>
"""

-- this doesn't render correctly
buildTimeWithNewline =
  """
  <title>NASA Space Station News</title>
  
"""

image

few braindump thoughts:

  • I haven't tried reproducing this on mac yet.
  • I know very little of Elm/ui-core to know if this is because ui-core squashes the text.
  • Might be a CSS text wrapping thing in Tauri?

@hojberg
Copy link
Member

hojberg commented Jan 13, 2025

Since this doesn't happen on Share or Unison Local, I suspect the rendering in ui-core is good, and this is either a UCM Desktop CSS problem or a problem with the Linux webview.

@DejanMilicic
Copy link

@hojberg I can check this on Windows, can you please direct me what to open?

@hojberg
Copy link
Member

hojberg commented Jan 13, 2025

Oh nevermind this looks broken even on Share, so likely a regression in a recent version of ui-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants