On 30/07/11 02:31, Will wrote:
Hi,

Prefixing the parameters passed to os.path.join with 'r' seems to work
as a work around as escaped characters are not processed and treated
as literals (see http://docs.python.org/reference/lexical_analysis.html).
For example, edit xhtml11.conf for [image-inlinemacro] and [image-
blockmacro]:

change:
    {data-uri#}{sys3:python -uc "import base64,sys;
base64.encode(sys.stdin,sys.stdout)"<
"{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}" /


to:

    {data-uri#}{sys3:python -uc "import base64,sys;
base64.encode(sys.stdin,sys.stdout)"<
"{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}" /


Thanks for reporting this Will. I think I've fixed all the relevant conf file entries:

http://code.google.com/p/asciidoc/source/detail?r=aeb59be49bdbd7cc294ba2a154887036e51271a0

This may cause problems for Windows users who have quietly worked around the problem by escaping path backslashes. I think the raw behavior is the correct one though.


Cheers, Stuart




Cheers,
Will


On Jul 29, 2:00 pm, LeRouge<[email protected]>  wrote:
Hi will,

On Jul 29, 8:36 am, Will<[email protected]>  wrote:

Hi,

I have a problem including images in my docs when the a directory in
the directory tree starts with a certain character for example 'a' or
'b'.  I'm using AsciiDoc 8.6.5 under Windows XP SP3.  For example:
[snip]
Is this a known issue?  Is there a fix?

  There is one report about this 
here:http://code.google.com/p/asciidoc-win32/issues/detail?id=1

lerouge


--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to