emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Attachment directory omitted from html export if line 1 is not section heading [9.3.7 (9.3.7-14-gb2b587-elpaplus @ /home/tarjei/.emacs.d/elpa/org-plus-contrib-20200720/)]
@ 2020-07-26  6:56 tarjei--- via General discussions about Org-mode.
  2020-07-27  1:15 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: tarjei--- via General discussions about Org-mode. @ 2020-07-26  6:56 UTC (permalink / raw)
  To: emacs-orgmode


Hi!

The following org file, where the attachment is a copied text file, is
exported to a fully functional html page:

-- without_title.org -----------
* Section :ATTACH:
:PROPERTIES:
:ID:       17b1efb9-e20c-4637-98c1-12e796e18d62
:END:

Attachment link to attachment [[attachment:attachment.txt][link]].
--------------------------------
-- without_title.html ----------
<body>
<div id="content">
<div id="outline-container-orgf2ba27a" class="outline-2">
<h2 id="orgf2ba27a">Section&#xa0;&#xa0;&#xa0;<span class="tag"><span class="ATTACH">ATTACH</span></span></h2>
<div class="outline-text-2" id="text-orgf2ba27a">
<p>
Attachment link to attachment <a target="_blank" href="data/17/b1efb9-e20c-4637-98c1-12e796e18d62/attachment.txt">link</a>.
</p>
</div>
</div>
</div>
</body>
---------------------------------


Adding a title to the page, results in non-expanded attachment links
when exported.

-- with_title.org ---------------
#+TITLE: With title

* Section :ATTACH:
:PROPERTIES:
:ID:       17b1efb9-e20c-4637-98c1-12e796e18d62
:END:

Attachment link to attachment [[attachment:attachment.txt][link]].
_________________________________

-- with_title.html --------------
<body>
<div id="content">
<h1 class="title">With title</h1>

<div id="outline-container-org4b9aea8" class="outline-2">
<h2 id="org4b9aea8">Section&#xa0;&#xa0;&#xa0;<span class="tag"><span class="ATTACH">ATTACH</span></span></h2>
<div class="outline-text-2" id="text-org4b9aea8">
<p>
Attachment link to attachment <a target="_blank" href="attachment.txt">link</a>.</p>
</div>
</div>
</div>
</body>
---------------------------------


I haven't been able to figure out if this is the same bug as
https://lists.gnu.org/archive/html/emacs-orgmode/2020-02/msg00784.html. My
appologies if it is.

Kind regards,
Tarjei


------------------------------------------------------------------------
Emacs  : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20)
 of 2020-05-19
Package: Org mode version 9.3.7 (9.3.7-14-gb2b587-elpaplus @ /home/tarjei/.emacs.d/elpa/org-plus-contrib-20200720/)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: Attachment directory omitted from html export if line 1 is not section heading [9.3.7 (9.3.7-14-gb2b587-elpaplus @ /home/tarjei/.emacs.d/elpa/org-plus-contrib-20200720/)]
  2020-07-26  6:56 Bug: Attachment directory omitted from html export if line 1 is not section heading [9.3.7 (9.3.7-14-gb2b587-elpaplus @ /home/tarjei/.emacs.d/elpa/org-plus-contrib-20200720/)] tarjei--- via General discussions about Org-mode.
@ 2020-07-27  1:15 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2020-07-27  1:15 UTC (permalink / raw)
  To: Tarjei Bærland; +Cc: emacs-orgmode

tarjei writes:

> Adding a title to the page, results in non-expanded attachment links
> when exported.
>
> -- with_title.org ---------------
> #+TITLE: With title
>
> * Section :ATTACH:
> :PROPERTIES:
> :ID:       17b1efb9-e20c-4637-98c1-12e796e18d62
> :END:
>
> Attachment link to attachment [[attachment:attachment.txt][link]].
> _________________________________
>
> -- with_title.html --------------
> <body>
> <div id="content">
> <h1 class="title">With title</h1>
>
> <div id="outline-container-org4b9aea8" class="outline-2">
> <h2 id="org4b9aea8">Section&#xa0;&#xa0;&#xa0;<span class="tag"><span class="ATTACH">ATTACH</span></span></h2>
> <div class="outline-text-2" id="text-org4b9aea8">
> <p>
> Attachment link to attachment <a target="_blank" href="attachment.txt">link</a>.</p>
> </div>
> </div>
> </div>
> </body>

Thanks for the report and the minimal example.

Trying your with_title.org example on master, the link is expanded.  It
looks like it starts to be expanded with f93020d5e (Expand attachment
links with point in correct place, 2020-01-15), so the fix will be in
v9.4.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-27  1:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-26  6:56 Bug: Attachment directory omitted from html export if line 1 is not section heading [9.3.7 (9.3.7-14-gb2b587-elpaplus @ /home/tarjei/.emacs.d/elpa/org-plus-contrib-20200720/)] tarjei--- via General discussions about Org-mode.
2020-07-27  1:15 ` Kyle Meyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).