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

Space character handling in SVG output #22

Open
tk0miya opened this issue May 6, 2018 · 1 comment
Open

Space character handling in SVG output #22

tk0miya opened this issue May 6, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@tk0miya
Copy link
Contributor

tk0miya commented May 6, 2018

environment: seqdiag 0.9.5 (installed by pip) on macOS

For the diag below includes spaces to represent code indent in note,
png output shows these spaces as is, but SVG output does not.
Precisely speaking, SVG text has spaces in text tag, then consecutive
space characters collapse to (much) narrower spacing.

seqdiag {
  a; b;
  a -> b [label = "foo",
leftnote =
"
1| case a of
2|     1 -> true;
3|     2 -> false
4| end
"];
}

Extraction from output SVG:

  <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="64" x="64.0" y="134">1| case a of</text>
  <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="86" x="75.0" y="147">2|     1 -&gt; true;</text>
  <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="83" x="73.5" y="160">3|     2 -&gt; false</text>
  <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="35" x="49.5" y="173">4| end</text>

@tk0miya tk0miya added the bug Something isn't working label May 6, 2018
@tk0miya
Copy link
Contributor Author

tk0miya commented May 6, 2018

From Takeshi KOMIYA on 2012-04-27 05:25:16+00:00

Sorry, this problem is caused from behavior of buildout.
We can't fix it.

I think separate build target and try to install in second phase::

  • bin/buildout install pillow
  • bin/buildout install extra

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

No branches or pull requests

1 participant