Skip to content

Commit

Permalink
sty: Remove unnecessary trailing whitespace in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 23, 2024
1 parent 1c8010b commit 27baa68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nibabel/gifti/gifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def _to_xml_element(self):
def print_summary(self):
print('Dataspace: ', xform_codes.niistring[self.dataspace])
print('XFormSpace: ', xform_codes.niistring[self.xformspace])
print('Affine Transformation Matrix: \n', self.xform)
print('Affine Transformation Matrix:\n', self.xform)


def _data_tag_element(dataarray, encoding, dtype, ordering):
Expand Down
7 changes: 4 additions & 3 deletions nibabel/gifti/tests/test_gifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,12 @@ def test_gifti_coord(capsys):
captured = capsys.readouterr()
assert (
captured.out
== """Dataspace: NIFTI_XFORM_UNKNOWN
== """\
Dataspace: NIFTI_XFORM_UNKNOWN
XFormSpace: NIFTI_XFORM_UNKNOWN
Affine Transformation Matrix:
Affine Transformation Matrix:
None
"""
"""
)
gcs.to_xml()

Expand Down

0 comments on commit 27baa68

Please sign in to comment.