reportlab: fix doctests
authorrgbecker
Fri, 14 May 2010 16:00:58 +0000
changeset 3376 9f1f91de9b3e
parent 3375 baeae60700c7
child 3377 8122289973f5
reportlab: fix doctests
src/reportlab/pdfbase/_can_cmap_data.py
src/reportlab/pdfbase/cidfonts.py
--- a/src/reportlab/pdfbase/_can_cmap_data.py	Fri May 14 15:59:06 2010 +0000
+++ b/src/reportlab/pdfbase/_can_cmap_data.py	Fri May 14 16:00:58 2010 +0000
@@ -8,6 +8,7 @@
 
 Running off CMAP files we get the following widths...::
 
+    >>> font = UnicodeCIDFont('HeiseiMin-W3')
     >>> font.stringWidth(unicode(','), 10)
     2.5
     >>> font.stringWidth(unicode('m'), 10)
--- a/src/reportlab/pdfbase/cidfonts.py	Fri May 14 15:59:06 2010 +0000
+++ b/src/reportlab/pdfbase/cidfonts.py	Fri May 14 16:00:58 2010 +0000
@@ -380,10 +380,10 @@
     'UniJIS-UCS2-H'
     >>> #This is how PDF data gets encoded.
     >>> print heisei.formatForPdf('hello')
-    \\377\\376h\\000e\\000l\\000l\\000o\\000
+    \\000h\\000e\\000l\\000l\\000o
     >>> tokyo = u'\u6771\u4AEC'
     >>> print heisei.formatForPdf(tokyo)
-    \\377\\376qg\\354J
+    gqJ\\354
 
     """