[sword-devel] SWBasicFilter::addEsccapeSubstitute
Helmer Krämer
sword-devel@crosswire.org
Thu, 7 Mar 2002 14:23:24 +0100
This is a multi-part message in MIME format.
--Multipart_Thu__7_Mar_2002_14:23:24_+0100_0826bdd0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
On Thu, 7 Mar 2002 11:48:12 +0100
Joachim Ansorg <jansorg@gmx.de> wrote:
Hi again!
> Hi!
>
> >
> > The attached patch is an attempt to fix this, so would you like to
> > try if the patch solves your problems?
>
> Not yet ;)
Hmpf, try to think of it as Patch NT then (=> nice try) ;) Sorry for
not having tested it well before sending it to the list.
> It creshes now if the SWBasicFilter methods are called. Thanks for
> having a look at this! I found a workaround, which works with HTML
> render widgets:
> setEscapeStringCaseSensitive(true);
> setPassThruUnknownEscapeString(true);
> since the HTML widget renders the esacpe codes for it's own. But it
> would be nice if you could fix this.
> Without set...CaseSensitive(true) it will crash.
Ok, attached is a new version of the patch, that works for me (this
time even tested).
-- Helmer
--Multipart_Thu__7_Mar_2002_14:23:24_+0100_0826bdd0
Content-Type: application/octet-stream;
name="patch.1"
Content-Disposition: attachment;
filename="patch.1"
Content-Transfer-Encoding: base64
SW5kZXg6IHNyYy9tb2R1bGVzL2ZpbHRlcnMvc3diYXNpY2ZpbHRlci5jcHAKPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpS
Q1MgZmlsZTogL3Vzci9sb2NhbC9jdnNyb290L3N3b3JkL3NyYy9tb2R1bGVzL2ZpbHRlcnMvc3di
YXNpY2ZpbHRlci5jcHAsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTYKZGlmZiAtdyAtdSAtcCAt
cjEuMTYgc3diYXNpY2ZpbHRlci5jcHAKLS0tIHNyYy9tb2R1bGVzL2ZpbHRlcnMvc3diYXNpY2Zp
bHRlci5jcHAJNCBNYXIgMjAwMiAwMTo1Njo0NCAtMDAwMAkxLjE2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