go-ini icon indicating copy to clipboard operation
go-ini copied to clipboard

Join lines ending with backslash

Open rakoo opened this issue 9 years ago • 0 comments

OfflineIMAP allows one to enter lambda functions to map remote names and local names (among others); unfortunately they end up spawning many lines. Here's a part of my config file:

nametrans = lambda folder : folder == 'archive' and '[Gmail]/All Mail' \
                         or folder == 'inbox' and 'INBOX' \
                         or folder == 'spam' and '[Gmail]/Spam' \
                         or folder == 'trash' and '[Gmail]/Trash' \
                         or folder == 'drafts' and '[Gmail]/Drafts' \
                         or folder == 'starred' and '[Gmail]/Starred' \
                         or folder == 'sent' and '[Gmail]/Sent Mail' \
                         or folder

This PR makes sure the file is parsed correctly and the nametrans key has a correct value (ie the rest joined)

rakoo avatar Mar 15 '15 10:03 rakoo

Hey, have you solved this problem already? I am also getting a similar issue, could you please help me with this?

Saranya-puthalath avatar Dec 30 '21 06:12 Saranya-puthalath