[dbdoclet] Re: Some & chars not escaped; Line breaks added in url in <pre> blocks (dbdoclet 1.3)
- From: Michael Fuchs <michael.fuchs@xxxxxxxxxxxxxxx>
- To: dbdoclet@xxxxxxxxxxxxx, "David Cramer (Tech Pubs)" <dcramer@xxxxxxxxxx>
- Date: Thu, 07 Sep 2006 20:30:34 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello David,
1. is a bug.
2. set the command line option -codewidth or the property
docbook.code.width to something like 1024. The default value is 75.
Regards
Michael
David Cramer (Tech Pubs) schrieb:
> Hi there,
> Using dbdoclet 1.3, a code comment contains this (url in third line is
> unbroken in the java source):
>
> * A simple example of using the class is:
> * <blockquote><pre>
> * TestHttpRequest req = new
> TestHttpRequest("http://localhost:7001/migrationbundle/bundleinfo?vendorId=MBVendor&webtarget=default&audience=au0
> <http://localhost:7001/migrationbundle/bundleinfo?vendorId=MBVendor&webtarget=default&audience=au0>");
> ...
>
> Processing with dbdoclet results in this docbook:
>
> <para>
> A simple example of using the class is: </para>
> <screen>
> TestHttpRequest req = new TestHttpRequest("http://localhost:7001/migration\
> bundle/bundleinfo?vendorId=MBVendor&webtarget=default&audience=au0");
> ...
>
> There are two problems:
> 1. The second & in the url is not escaped ("default&audience") tho the
> first one (MBVendor&webtarget) is. Since the 2nd & is not escaped,
> the result is invalid docbook.
> 2. The url is broken and a \ added. I'd prefer not to change the
> programlistings at this point in the process. The docbook xsls have
> their own mechanism for handling this situation in fo and in html output
> we don't do any munging of our code blocks.
>
> I assume #1 is a bug. Is #2 something I can configure?
>
> Thanks,
> David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFAGVKNAj4n78BmMYRAmhiAKCpKdnsJDkBKUAjtVNyNJFz/O29LwCfSwzt
P/Cmgluy0JXk9wIW1it1zX0=
=KGam
-----END PGP SIGNATURE-----
- References:
- [dbdoclet] Some & chars not escaped; Line breaks added in url in <pre> blocks (dbdoclet 1.3)
- From: David Cramer (Tech Pubs)
Other related posts:
- » [dbdoclet] Some & chars not escaped; Line breaks added in url in <pre> blocks (dbdoclet 1.3)
- » [dbdoclet] Re: Some & chars not escaped; Line breaks added in url in <pre> blocks (dbdoclet 1.3)
- [dbdoclet] Some & chars not escaped; Line breaks added in url in <pre> blocks (dbdoclet 1.3)
- From: David Cramer (Tech Pubs)