[Spambayes-checkins] spambayes/spambayes OptionsClass.py,1.12,1.13

Tony Meyer anadelonbrin at users.sourceforge.net
Tue Sep 9 01:53:58 EDT 2003


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv14538/spambayes

Modified Files:
	OptionsClass.py 
Log Message:
Fix for [ 802347 ] multiline options saved incorrectly

Index: OptionsClass.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/OptionsClass.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** OptionsClass.py	5 Sep 2003 01:15:28 -0000	1.12
--- OptionsClass.py	9 Sep 2003 07:53:56 -0000	1.13
***************
*** 436,440 ****
                              out.write(optname)
                              out.write(vi)
!                             out.write(self.unconvert(sectname, optname))
                              out.write('\n')
                              written.append((sectname, optname))
--- 436,441 ----
                              out.write(optname)
                              out.write(vi)
!                             newval = self.unconvert(sectname, optname)
!                             out.write(newval.replace("\n", "\n\t"))
                              out.write('\n')
                              written.append((sectname, optname))
***************
*** 465,469 ****
                  out.write(opt)
                  out.write(vi)
!                 out.write(self.unconvert(sect, opt))
                  out.write('\n')
                  written.append((sect, opt))
--- 466,471 ----
                  out.write(opt)
                  out.write(vi)
!                 newval = self.unconvert(sect, opt)
!                 out.write(newval.replace("\n", "\n\t"))
                  out.write('\n')
                  written.append((sect, opt))





More information about the Spambayes-checkins mailing list