Git Product home page Git Product logo

atom-cssbeautify's Introduction

atom-cssbeautify's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atom-cssbeautify's Issues

Linting/"beautification" stops on comment

Hey, I like your package. It saves me bundles of time with collaborative code organization, and it's slim.

Well anyways, the one issue I have with this thing is that on run, the beautification halts when it sees a comment mid-way, ie. if this is my input CSS:

/* Import for default font */
@import url("https://fonts.googleapis.com/css?family=Libre+Baskerville:400,700");
body {
  margin: 0px;
  color: #000;
  background: #ddd;
  font-family: 'Libre Baskerville', serif;
}
.cm-title {
  font-family: "Old Standard TT";
}
#cm-home-logo {
  float: left;
  position: relative;
  down: 50px;
}
.cm-block-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cm-nav-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Quick override of Bootstrap 4's container class */
.container-fluid {
  padding: 0px;
}
nav {
  background: #eee;
}
nav a,
nav a:hover {
/* Make the links underline free,
        and the default color from the body element */
  text-decoration: none;
  color: inherit;
}

(there were more lines of code; truncated for the sake of readability)

This is the output, when I run the beautifier:

/* Import for default font */
@import url("https://fonts.googleapis.com/css?family=Libre+Baskerville:400,700");

body {
    margin: 0px;
    color: #000;
    background: #ddd;
    font-family: 'Libre Baskerville', serif;
}

.cm-title {
    font-family: "Old Standard TT";
}

#cm-home-logo {
    float: left;
    position: relative;
    down: 50px;
}

.cm-block-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cm-nav-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* Quick override of Bootstrap 4's container class */
.container-fluid {
  padding: 0px;
}
nav {
  background: #eee;
}
nav a,
nav a:hover {
/* Make the links underline free,
        and the default color from the body element */
  text-decoration: none;
  color: inherit;
}

It stops beautifying right on that comment there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.