Community
    • 登入

    Downloaded CSS file wrapped into one line after editing & uploading

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    2 貼文 2 Posters 1.7k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • melissadavisgithubM
      melissadavisgithub
      最後由 編輯

      I am editing a WordPress stylesheet file, style.css, using notepad++. When I uploaded the file (via ftp) after editing, I find all the line breaks have been removed. The code shows up as one big mass of text.

      Here is the messed up stylesheet:
      http://staging.alphaprofit.com/wp-content/themes/iconiconepro-child/style.css

      Here is what the stylesheet should look like:
      http://staging.alphaprofit.com/wp-content/themes/iconic-one-pro/style.css

      When I downloaded style.css the first time, edited it and uploaded it, it seemed OK. When I downloaded the edited version, re-edited and uploaded, things have gone haywire.

      How do I re-insert the line breaks?

      Thanks,
      Melissa

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @melissadavisgithub
        最後由 編輯

        @melissadavisgithub

        could it be that this is some kind of eol issue?
        Like you edit the file with windows eol while uploading to a unix server which expects \n only?
        View->Show Symbols->Show end of line

        Cheers
        Claudia

        1 條回覆 最後回覆 回覆 引用 0
        • 第一個貼文
          最後的貼文
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors