Hello everyone !
Trying to learn Typst for my resumes and cover letters, I noticed lots of “No whitespace before raw text” warnings. I tried to create a new issue in github repo with no success…
What should I do from now do report this to maintainers ?
Regards
Hey @ploz
First of all, make sure to read the community guidelines about questions (How to post in the Questions category). In short, post title must be posed like a question.
In this case I’d recommend changing it to something more generic like “What does the warning No whitespace before raw text mean?”. That it comes from a package is a problem for the package maintainers, but the understanding the warning might be helpful for everyone.
Also having a minimum working example (MWE) that shows your issue is really helpful for us, as it makes analyzing easier.
The warning is thrown, due to how svg icons are handled in that package. A fix exist, but hasn’t been pushed yet (Fix SVG syntax in typst by eltos · Pull Request #9 · continuous-foundation/scienceicons · GitHub). The warning itself was introduced in Typst version 0.15 and can be triggered by (in my opinion) misusing raw blocks, but the package maintainers probably got their reasons.
```< this symbol causes a warning```
Your options are:
- latest
typstversion (>=0.15.x) – live with it, until a fix is pushed ontoscienceiconsand just ignore the warnings until then. - downgrade – if you use the webapp, open your document and open the settings in the bottom left corner and then select the compiler version.
- import the
.svgversion of your desired images directly into your docs#box(image("openaccess.svg"), height: 1em) // image inside box -> makes it inline
Also, I’m not sure if you opened the correct repository (as you don’t mention it specifically in the post). If you wanna know where a package comes from, you can open the package’s universe page (i.e. scienceicons – Typst Universe) and look at the package’s About information on the right side:
