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

Option pretty disabled removes implicit whitespaces #90

Open
phlegx opened this issue Apr 29, 2015 · 1 comment
Open

Option pretty disabled removes implicit whitespaces #90

phlegx opened this issue Apr 29, 2015 · 1 comment

Comments

@phlegx
Copy link

phlegx commented Apr 29, 2015

Hi!

I use slim-rails gem version 3.0.1 and I have seen that slim removes implicit whitespaces declared with > or <. For example if I use:

span => my_variable_string

/ or

span =< my_variable_string

Slim definition

Output with trailing white space =>. Same as the single equal sign (=), except that it adds a trailing white space.

Output with leading white space =<. Same as the single equal sign (=), except that it adds a leading white space.

The code shows me a whitespace after or before but using the HTML minification (option pretty: false), it removes the implicite whitespaces. Any idea?

@phlegx phlegx changed the title Option pretty removes implicit whitespaces Option pretty disabled removes implicit whitespaces Apr 29, 2015
@keathley
Copy link

It looks like the latest version of master (which reverts the change to enabling pretty mode only in development) just hasn't been tagged yet.

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

2 participants