|Subject:||Re: [O] Bug: Can't export subtree with links to headlines outside of the subtree [8.3.1 (8.3.1-95-g1dbb25-elpa)]|
|Date:||Tue, 1 Sep 2015 14:39:42 -0400|
Michael Behr <address@hidden> writes:
> I want to export a subtree of a file, but that subtree has links to
> headings in the file that are outside of the subtree. I expect the
> exporting process to produce some sort of valid result, but instead it
> throws an "Unable to resolve link" error. Here's a test file to
> * Foo
> * Bar :export:
> Making a file with those contents and trying to export it to e.g.
> latex will fail, but if the :export: tag is removed, exporting
> succeeds. I can't easily get a backtrace because the error comes from
> user-error, but it happens in org-export-resolve-fuzzy-link.
> Of course the exported file can't link to a target that doesn't exist,
> but it's probably better to strip out the link in this case than to
> throw an error, right?
Actually, wrong. It was discussed already, and the current trend is to
throw an error instead of silently dropping the link.
Can't you just filter it out before exporting?
|[Prev in Thread]||Current Thread||[Next in Thread]|