Show More
@@ -576,19 +576,19 b' def strip_email_quotes(text):' | |||||
576 | In [2]: strip_email_quotes('> > text') |
|
576 | In [2]: strip_email_quotes('> > text') | |
577 | Out[2]: 'text' |
|
577 | Out[2]: 'text' | |
578 |
|
578 | |||
579 | In [3]: strip_email_quotes('> > text\n> > more') |
|
579 | In [3]: strip_email_quotes('> > text\\n> > more') | |
580 | Out[3]: 'text\nmore' |
|
580 | Out[3]: 'text\\nmore' | |
581 |
|
581 | |||
582 | Note how only the common prefix that appears in all lines is stripped:: |
|
582 | Note how only the common prefix that appears in all lines is stripped:: | |
583 |
|
583 | |||
584 | In [4]: strip_email_quotes('> > text\n> > more\n> more...') |
|
584 | In [4]: strip_email_quotes('> > text\\n> > more\\n> more...') | |
585 | Out[4]: '> text\n> more\nmore...' |
|
585 | Out[4]: '> text\\n> more\\nmore...' | |
586 |
|
586 | |||
587 | So if any line has no quote marks ('>') , then none are stripped from any |
|
587 | So if any line has no quote marks ('>') , then none are stripped from any | |
588 | of them :: |
|
588 | of them :: | |
589 |
|
589 | |||
590 | In [5]: strip_email_quotes('> > text\n> > more\nlast different') |
|
590 | In [5]: strip_email_quotes('> > text\\n> > more\\nlast different') | |
591 | Out[5]: '> > text\n> > more\nlast different' |
|
591 | Out[5]: '> > text\\n> > more\\nlast different' | |
592 | """ |
|
592 | """ | |
593 | lines = text.splitlines() |
|
593 | lines = text.splitlines() | |
594 | matches = set() |
|
594 | matches = set() |
General Comments 0
You need to be logged in to leave comments.
Login now