ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Reformat the CSS files to use a standard (Feature #947)

Added by Andrew Smith at 2012-03-23 03:57 pm. Updated at 2012-05-21 12:03 pm.

Status:Closed Start date:2012-03-24
Priority:Normal Due date:
Assignee:Andrew Smith % Done:


Target version:3.2.0
Remote issue URL: Affected version:


Currently all the CSS files use different spacing/tabbing and mixed rule layouts. These should be standardised.

Associated revisions

Revision 4cbe6b62
Added by Jean-Philippe Lang at 2008-04-02 09:52 pm

Accept the following formats for the timelog "hours" field: 1h, 1 h, 1 hour, 2 hours, 30m, 30min, 1h30, 1h30m, 1:30.
Also accept 1,5 for 1.5 hour (closes #975). Note that 1.5 is still equal to 1h30 and not 1h50 (#947).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81

Revision f983b451
Added by Andrew Smith at 2012-05-21 01:45 pm

Reformat CSS to use the coding standard. #947

Formatting was done mostly by hand using the following as a guide

" Replace all sequences of white spaces with one space
:%s/[ \t\n]\+/ /g

" Go to the end of the command, then forward one character and insert
" a newline

" Make sure there is a semi-colon before each closing bracket
:%s/\([^; ]\) *}/\1;}/g

" Add a newline after every semi-colon

" Add a newline after every opening brace and make put one space
" between it and the preceeding text
:%s/\([^ ]*\) *{/\1 {^M/g

" Add two newlines after every closing brace

" Remove 'trailing' spaces in front of the semi-colons
:%s/ *;/;/g

" Make sure there is only one space after a colon
:%s/: */: /g

" Make the text before the colon lowercase

" Remove all trailing spaces at the beginning of lines
:%s/^ \+/g

" Indent the whole file

" Split each rule onto its own line (This also matched some
" property/value combos so needed confirming
:%s/\([a-z0-9]\+\), \+/\1,^M/gc


Updated by Holger Just at 2012-03-24 07:37 pm

  • Tracker changed from Task to Feature
  • Status changed from Open to Ready for review

Updated by Felix Schäfer at 2012-05-21 07:04 am

There's still 1-2 kinks to work out, but looks good overall.

  • Assignee set to Andrew Smith
  • Status changed from Ready for review to Open

Updated by Felix Schäfer at 2012-05-21 12:03 pm

Finally committed, woo! f983b45

  • Target version set to 3.2.0
  • Status changed from Open to Closed

Also available in: Atom PDF