diff --git a/doc/howto.rst b/doc/howto.rst
index 92244c43a69ef61ba3b33a581bc4a696ed9e7705..3f1c5b05305f487028a8a6dbd288b138654a68de 100644
--- a/doc/howto.rst
+++ b/doc/howto.rst
@@ -64,7 +64,7 @@ the device:
     >>> ary_host["field1"].fill(217)
     >>> ary_host["field2"].fill(1000)
     >>> ary_host[13]["field2"] = 12
-    >>> print(ary_host)
+    >>> print(ary_host) #doctest: +NORMALIZE_WHITESPACE
     [(217,  1000.) (217,  1000.) (217,  1000.) (217,  1000.) (217,  1000.)
      (217,  1000.) (217,  1000.) (217,  1000.) (217,  1000.) (217,  1000.)
      (217,  1000.) (217,  1000.) (217,  1000.) (217,    12.) (217,  1000.)
@@ -98,7 +98,7 @@ as well as with PyOpenCL's built-in operations:
     >>> elwise = ElementwiseKernel(ctx, "my_struct *a", "a[i].field1 = 2;",
     ...    preamble=my_struct_c_decl)
     >>> evt = elwise(ary)
-    >>> print(ary)
+    >>> print(ary) #doctest: +NORMALIZE_WHITESPACE
     [(2,  1000.) (2,  1000.) (2,  1000.) (2,  1000.) (2,  1000.) (2,  1000.)
      (2,  1000.) (2,  1000.) (2,  1000.) (2,  1000.) (2,  1000.) (2,  1000.)
      (2,  1000.) (2,    12.) (2,  1000.) (2,  1000.) (2,  1000.) (2,  1000.)