If you want it lined up in the emitted css, you actually will need to use 3 spaces in the sass source because the outdent will be removed. E.g.: /** * * */
-chris On Tue, Jul 14, 2009 at 3:26 PM, joneff <[email protected]> wrote: > > Indeed that is the purpose -- to appear in the CSS. Currently in the > source files I "emulate" this with "silent" comments. > > The use of loud comments I will discuss in the Compass group in just a > little while ;) > > On Jul 15, 1:15 am, Chris Eppstein <[email protected]> wrote: > > Sass comments are whitespace active, like the rest of the syntax. They > need > > not be closed just line how semi-colons are not needed, but if you do, we > > deal with that. > > As such, multiline comments must be indented by the same amount of > > indentation as the rest of the file. After the first indent, however, > > comments are much more forgiving with whitespace, so you can indent more, > > just not less. > > > > It will work, if you do this (assuming you indent with two spaces): > > > > /** > > * > > */ > > > > Alternatively, you can make each line start with a comment like this: > > > > /* > > /* > > /* > > > > Note that these are all "loud" comments -- they will appear in your css > > files. If you want silent comments, you can use // instead. > > > > Cheers, > > Chris > > > > On Tue, Jul 14, 2009 at 3:05 PM, joneff <[email protected]> wrote: > > > > > Is there a way to force sass to leave closed css comments untouched, > > > or more specifically to make jDoc style comments? > > > > > Currently if I write > > > > > /** one line */ > > > > > i get > > > > > /* * one line */ > > > > > And if I write > > > > > /** > > > * multi line > > > */ > > > > > I get an error for indenting with one space. So I tried a "work > > > around" > > > > > /** > > > sample comment > > > */ > > > > > And I get > > > > > /* * > > > * sample comment > > > * */ > > > > > I believe this is the line (and probably the lines before it) > > > > > > spaces + "/* " + content.join(style == :compact ? '' : "\n#{spaces} > *") + > > > " */" > > > > > line 60 in file "ruby\lib\ruby\gems\1.8\gems\haml-edge-2.3.13\lib\sass > > > \tree\comment_node.rb" > > > > > I am no ruby guy, but I played a little bit with the file and now > > > matter what I tried, I couldn't achieve the desired effect. > > > > > Anyone having an idea? > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
