[reportlab-users] Less than, Greater than, Ampersand, Oh My!
Robin Becker
robin at reportlab.com
Tue Jun 13 05:06:49 EDT 2006
Tom Wiebe wrote:
> Hi There again,
>
> Just wondering what the best way to encode <,>,& and the like. In my
> initial flailing about developing on my mac, I simply replaced them
> with their html-encoded entities and it worked like a charm. i.e.
> <, >, & (I know it's not in the manual, I tried it and it
> worked first go so I left it there).
>
> Now, when I'm trying to get things to work on the Windows side of
> things, my earlier success with html encoding seems to not work any
> longer, giving me the following error:
>
> ABag instance has no attribute 'strike'
>
> Looks like it's going south rather deep in Reportlab somewhere, I
> haven't been able to figure out exactly what.
>
> I've tried replacing with the unicode equivalent of <, >, and &, I've
> also tried the <unichar /> tag, neither seem to work right or, I'm
> just not doing them right. Not quite sure.
.......
this is caused by your using (I think) version 0.55 of the _rl_accel.pyd. I
believe I have now fixed that in version 0.56.
Try executing this at a command prompt
python -c"import _rl_accel;print _rl_accel.version"
0.55 indicates the bad version of the _rl_accel.pyd. You should be able to get
the latest version at
http://www.reportlab.org/downloads.html#dlls
This problem was my fault. I added in strikethrough capability after 2.0 came
out and then noticed I needed to support that in the accelerator. The first
attempt was backwardly incompatible so I fixed that by making the _sameFrag
tester slightly more lenient.
--
Robin Becker
More information about the reportlab-users
mailing list