Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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{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
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

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .