Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to remove \n from file?
#2
If you remove the newline, they won't be separate lines.

I suspect the error is telling you that you have whitespace at the beginning of the lines. For getmail, the configuration assumes that if it starts with whitespace it is a continuation of the previous line.

Quote:A parameter value, if necessary, can span multiple lines. To indicate that the second and subsequent lines form a continuation of the previous line, they need to begin with leading whitespace, like this:
first_parameter = value
    first parameter value continues here
second_parameter = value

Get rid of the leading whitespace.
buran likes this post
Reply


Messages In This Thread
how to remove \n from file? - by shams - Feb-03-2021, 04:07 PM
RE: how to remove \n from file? - by bowlofred - Feb-03-2021, 04:43 PM
RE: how to remove \n from file? - by buran - Feb-03-2021, 05:53 PM
RE: how to remove \n from file? - by shams - Feb-04-2021, 07:00 AM
RE: how to remove \n from file? - by buran - Feb-04-2021, 07:05 AM
RE: how to remove \n from file? - by shams - Feb-04-2021, 07:27 AM
RE: how to remove \n from file? - by buran - Feb-04-2021, 07:29 AM
RE: how to remove \n from file? - by shams - Feb-04-2021, 07:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Remove single and double quotes from a csv file in 3 to 4 column shantanu97 0 7,043 Mar-31-2021, 10:52 AM
Last Post: shantanu97
  How to remove empty struct from matlab file in python? python_newbie09 0 2,408 Jun-25-2019, 12:13 PM
Last Post: python_newbie09
  How to remove form feed from file gurbhej_singh 5 3,502 May-26-2019, 05:51 AM
Last Post: gurbhej_singh
  How to remove duplicates basis keys of a csv file Prince_Bhatia 2 3,469 Aug-09-2018, 10:57 AM
Last Post: Prince_Bhatia
  Remove extra lines from .csv file in comparison with another pedteles 1 3,025 Jun-08-2017, 04:09 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020