Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a giant CSS file that has no carriage returns.
But I need to add carriage returns after the closing tags }.

Here is a sample:

#mvt-nascar #mvt-social li a.google-plus{background-position:-708px -460px}body#dispatcher.index #mvt-nascar #mvt-social li a.the-hub{background-position:-746px -460px}body#dispatcher.index #mvt-nascar .certifications{float:left;margin:0;border-left:1px solid #aaa}body#dispatcher.index #mvt-nascar .certifications ul li{float:left;margin:0 0 0 12px}

It's like one giant run-on CSS file. How can I add a carriage return after the } symbol

I've tried the search/replace using /n but it just removed the } symbol.
What can anyone suggest?

share|improve this question
3  
Can't you just replace } with }\n? That would accomplish what you want. –  Indrek Dec 28 '12 at 1:20
    
Yeah, that should work - just make sure that you are in extended mode. –  ChrisN Dec 28 '12 at 2:08
    
Perfect! Worked great. Thank you so much... –  steve02a Dec 28 '12 at 2:16
    
@Indrek I think you should make it as an answer –  pratnala Dec 28 '12 at 4:29
add comment

1 Answer 1

You can simply replace } with }\n. That will preserve the curly brackets and add a line break after each one.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.