Skip to content

BUG: generate-diff removes part of command not just the output #252

@bsipocz

Description

@bsipocz

I run into this diff with a pyvo narrative docs file, where the print has been erroneously removed.

cc @seberg in case you have an idea what goes wrong (besides that the doc would probably benefit of a refactor that removes the printing in for loop altogether)

--- a/docs/dal/index.rst
+++ b/docs/dal/index.rst
@@ -719,17 +719,17 @@ Iterating over a resultset gives the rows in the result:
 .. doctest-remote-data::
 
     >>> for row in resultset:
-    ...     print(row['s_fov'])
-    0.05027778
-    0.05027778
+    0.06527778
+    0.06527778
+    0.06527778
+    0.06527778
+    0.06527778
+    0.06527778
     0.05027778
     0.05027778
     0.05027778
     0.05027778
     0.06527778
-    0.06527778
-    0.06527778
-    0.06527778
 
 The total number of rows in the answer is available as its ``len()``:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions