I do not think that is the problem. A single quote between double quotes is allowed.
On Wednesday, 8 October 2014 18:45:30 UTC-5, Dave S wrote: > > > Hi, Richard ... > > On Monday, October 6, 2014 3:10:25 PM UTC-7, Richard Warg wrote: >> >> I am using the sample report from >> *https://code.google.com/p/pyfpdf/wiki/Web2Py#Sample_Report >> <https://code.google.com/p/pyfpdf/wiki/Web2Py#Sample_Report>.* >> >> It works as expected until I have an apostrophe or ampersand in the >> string. >> >> [...] >> > > >> rows.append(TR(TD*("Row's %*s" %i), >> TD("Something", _align="center"), >> TD("%s" % i, _align="right"), >> _bgcolor=col)) >> > > In your example, you are entering the string manually ... and I think > you're running into Python string behavior. I think you need to escape the > apostrophe (\' or ''') when you do it this way. But how are you getting > the "real" text contents that you want to display? Are you reading it from > a file? > > /dps > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

