This is an automated email from the ASF dual-hosted git repository.

altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 42e4eeb  Remove at most one-line of whitespace after Out[]: prompt
     new 8da11dc  Merge pull request #14232 from TheNeuralBit/prompt-whitespace
42e4eeb is described below

commit 42e4eebfbba77d237fc25ad2abca358a70c2b0fa
Author: Brian Hulette <[email protected]>
AuthorDate: Mon Mar 15 08:38:10 2021 -0700

    Remove at most one-line of whitespace after Out[]: prompt
---
 sdks/python/apache_beam/dataframe/doctests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/dataframe/doctests.py 
b/sdks/python/apache_beam/dataframe/doctests.py
index ca547da..2cab555 100644
--- a/sdks/python/apache_beam/dataframe/doctests.py
+++ b/sdks/python/apache_beam/dataframe/doctests.py
@@ -589,7 +589,7 @@ def parse_rst_ipython_tests(rst, name, extraglobs=None, 
optionflags=None):
       if output:
         # Strip the prompt.
         # TODO(robertwb): Figure out how to suppress this.
-        output = re.sub(r'^Out\[\d+\]:\s*', '', output)
+        output = re.sub(r'^Out\[\d+\]:[ \t]*\n?', '', output)
       examples.append(doctest.Example(src, output, lineno=lineno))
 
   finally:

Reply via email to