WordPress.org

Ready to get started?Download WordPress

Forums

Theme Editor adds double space in css (4 posts)

  1. Vistronic
    Member
    Posted 5 years ago #

    When I edit theme css in theme editor in WP admin
    Wordpress reformats my CSS and adds a blank life between entrys in css.
    it adds a cr and line break ....
    In other words if you have a 100 line css
    download with FTP look at in text editor
    it is now 200 lines
    as WP added blank lines to css
    it should not be adding things to the CSS?????????????????????????

    It may only do this when it wraps window but I think not it appears to add blank lines.

    Imagine the damage to a 1000 line CSS it spaces every entry by 1 line!!!!!!!!!!!!!! It stiil works but it messes it up.

    THAT IS COFIRMED ONE EDIT DOUBLE SPACE ENTIRE CSS... VERY BAD

  2. Vistronic
    Member
    Posted 5 years ago #

    Besides that the page is encoded in mac format the line ending are diffirent

  3. Vistronic
    Member
    Posted 5 years ago #

    Here is part of the problem but not the double space in total.
    When you down load the file in FTP and it is in windows encoding
    the line endings.
    So you ftp back and all is fine.
    Now you are at the coffee shop and what a quick change, so you login to WP admin and theme editor edit CSS.
    Now you get home and download in ftp to continue your work on CSS.
    The file is now mac formatted (or thinks it is) so when you edit the line endings do not contain the right line breaks for windows OR WP theme editor as it ignores them. This explains the wierd spacing though not the double spacing .... why is it converting to mac and yet ignores mac?!
    weird..
    must be bug
    again though its still double spacing on edit IN windows line ending though if you down load cSS its tagged mac format...
    aahhhh
    what say you!

  4. Vistronic
    Member
    Posted 5 years ago #

    Same problem.
    Use notepad 2 or Note pad plus to see the error.
    When ever you edit with wordpress editor it adds cr and says css is now mac formatted.

    FTP download the file and now see all the extra CR's it adds.

    So it likes CR only so I convert to CR only and it beaks CSS it wants CR LF to work but if that is the case why does the online editor add CR only?????????????????????????

Topic Closed

This topic has been closed to new replies.

About this Topic