Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
include macro changes working directory
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Warren Block  
View profile  
 More options Sep 21 2010, 11:33 pm
From: Warren Block <wbl...@wonkity.com>
Date: Tue, 21 Sep 2010 21:33:49 -0600 (MDT)
Local: Tues, Sep 21 2010 11:33 pm
Subject: include macro changes working directory
Using an include macro to include a link back to my document index works
fine:

include::../docs/links/index.txt

index.txt is just

http://www.wonkity.com/%7ewblock/docs/index.html[Links to all my articles.]

So far, so good.  However, in documents that have images (this one is
pxe.txt):

include::../links/index.txt[]
image::./images/graphic.jpg["Sample graphic boot menu",align="center"]

/usr/local/bin/asciidoc -a data-uri -a icons  -a iconsdir=/usr/local/etc/asciidoc/images/icons  -d article  -a stylesheet=~/docs/stylesheets/wb-html.css  -a toc  -a revdate="2010-09-21" -a year="2010"  -a max-width=80em  pxe.txt
cannot open /usr/home/wblock/docs/links/./images/graphic.jpg: No such file or directory
asciidoc: WARNING: pxe.txt: line 34: {sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "/usr/home/wblock/docs/links/./images/graphic.jpg"}: non-zero exit status

Directory layout:
docs
   links
     index.txt
   pxe
     images
       graphic.jpg
     pxe.txt

The image link worked before adding the include macro.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Rackham  
View profile  
 More options Sep 24 2010, 6:43 pm
From: Stuart Rackham <srack...@gmail.com>
Date: Sat, 25 Sep 2010 10:43:28 +1200
Local: Fri, Sep 24 2010 6:43 pm
Subject: Re: include macro changes working directory
Hi Warren

On 22/09/10 15:33, Warren Block wrote:

Thanks for reporting this long standing bug. Happens because nested includes do
not restore the parent document 'infile' and 'indir' attributes.

I've committed a fix, give it a go and let us know if it works or not:
http://code.google.com/p/asciidoc/source/detail?r=7f9b4f8de2460be1cbb...

Cheers, Stuart


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Warren Block  
View profile  
 More options Sep 24 2010, 9:57 pm
From: Warren Block <wbl...@wonkity.com>
Date: Fri, 24 Sep 2010 19:57:46 -0600 (MDT)
Local: Fri, Sep 24 2010 9:57 pm
Subject: Re: include macro changes working directory

On Sat, 25 Sep 2010, Stuart Rackham wrote:

>> The image link worked before adding the include macro.

> Thanks for reporting this long standing bug. Happens because nested includes
> do not restore the parent document 'infile' and 'indir' attributes.

> I've committed a fix, give it a go and let us know if it works or not:
> http://code.google.com/p/asciidoc/source/detail?r=7f9b4f8de2460be1cbb...

Yes--works great!  Caveat: I couldn't quickly figure out how to get an
actual diff rather than a side-by-side full listing from the Google Code
interface, so I manually edited my asciidoc.py.

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »