eclipse formats css multi-line to single-line :-(

hello,
i have trouble with my eclipse
if i format a file with css content (Ctrl Shift F), eclipse formats from multi-line css to single-line css (look at bottom)
i search for a half day for a solution, but nothing works
at last i install a new eclipse but i have the same trouble
who knows the secret?


-------------------------------------------------------------------------------
<?php

/**

* Custom Index CSS

*

*/

?>

/******************************* Custom Index

 

********************************/ .elgg-page-default .elgg-page-footer .elgg-inner { padding-left:35px; } .c_i_c_subtitle { font-size:11px; line-height:13px; } .c_i_c_subtitle p { margin-top: 3px; margin-bottom: 3px; } p { margin-bottom: 10px; } a { color: #4077AA; } a:hover { color:#FF3300; text-decoration:none; } .elgg-menu-site-default > li > a {color: #4690D6; }

 

  • Maybe..
    Window -> Preferences -> General -> Workspace -> New text file line delimiter.



  • I just tested @ Ganymede :-

    .elgg-page-default .elgg-page-footer .elgg-inner {padding-left: 35px;}
    .c_i_c_subtitle {font-size: 11px;line-height: 13px;}
    .c_i_c_subtitle p {margin-top: 3px;margin-bottom: 3px;}
    p {margin-bottom: 10px;}
    a {color: #4077AA;}
    a:hover {color: #FF3300;text-decoration: none;}
    .elgg-menu-site-default>li>a {color: #4690D6;}

    and - eclipse returns :-

    .elgg-page-default .elgg-page-footer .elgg-inner {
        padding-left: 35px;
    }
     
    .c_i_c_subtitle {
        font-size: 11px;
        line-height: 13px;
    }
    . . .

    must be your eclipse prefs causing funnies.. ;(

     

     

  • thank you very much drup-man-friend ;-))
    now i tested with with eclipse ganymed, galileo, helios classic and other packets . . .
    no success! eclipse makes no multi-line :-(
    i googled and tested several settings . . .
    no success!
    i have no more time for such stupid . . . so i made a workaround:
    i do not use 'format' with ccs-files in eclipse ;-)
    and when i must format a css file, i use this little tool: http://tools.arantius.com/tabifier
    basta!
    perhaps i will find the reason for this behavior by coincidence :-) . gggrrrr . ;-)