go-ini
go-ini copied to clipboard
Join lines ending with backslash
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)
Hey, have you solved this problem already? I am also getting a similar issue, could you please help me with this?