* HTML export error with file link containing underscores
@ 2009-07-03 18:40 Brenton Kenkel
2009-07-03 19:35 ` Nick Dokos
0 siblings, 1 reply; 4+ messages in thread
From: Brenton Kenkel @ 2009-07-03 18:40 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 671 bytes --]
Dear all,
I am having a problem with Org-mode's HTML export, specifically with a local
file link that contains underscores. My file contains the following link in
the org-mode source:
[[file:low_stats/berkeley_brady_2005.pdf][syllabus]]
and the HTML export produces the following:
<a href="low_stats/berkeley_[[brady">brady</a>_2005.pdf][syllabus]]
I have tried escaping the underscores with a backslash, as well as including
the line "#+OPTIONS: ^:nil *:nil" to disable the use of underscores for
other functions. None of these fixes produced the correct HTML code. Is this
a bug, or is there something else I should be doing?
Thanks for your help,
Brenton Kenkel
[-- Attachment #1.2: Type: text/html, Size: 879 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HTML export error with file link containing underscores
2009-07-03 18:40 HTML export error with file link containing underscores Brenton Kenkel
@ 2009-07-03 19:35 ` Nick Dokos
2009-07-03 21:23 ` Brenton Kenkel
0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2009-07-03 19:35 UTC (permalink / raw)
To: Brenton Kenkel; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 911 bytes --]
Brenton Kenkel <brenton.kenkel@gmail.com> wrote:
> I am having a problem with Org-mode's HTML export, specifically with a local
> file link that contains underscores. My file contains the following link in
> the org-mode source:
>
> [[file:low_stats/berkeley_brady_2005.pdf][syllabus]]
>
> and the HTML export produces the following:
>
> <a href="low_stats/berkeley_[[brady">brady</a>_2005.pdf][syllabus]]
>
> I have tried escaping the underscores with a backslash, as well as including
> the line "#+OPTIONS: ^:nil *:nil" to disable the use of underscores for
> other functions. None of these fixes produced the correct HTML code. Is this
> a bug, or is there something else I should be doing?
[Please provide version numbers for emacs and org-mode.]
I cannot reproduce this. The following org file:
,----
|
| * foo
| [[file:low_stats/berkeley_brady_2005.pdf][syllabus]]
`----
produces this html:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: HTML output --]
[-- Type: text/xml, Size: 3052 bytes --]
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>underscores</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2009-07-03 15:31:44 EDT"/>
<meta name="author" content="Nick Dokos"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
html { font-family: Times, serif; font-size: 12pt; }
.title { text-align: center; }
.todo { color: red; }
.done { color: green; }
.tag { background-color: #add8e6; font-weight:normal }
.target { }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
p.verse { margin-left: 3% }
pre {
border: 1pt solid #AEBDCC;
background-color: #F3F5F7;
padding: 5pt;
font-family: courier, monospace;
font-size: 90%;
overflow:auto;
}
table { border-collapse: collapse; }
td, th { vertical-align: top; }
dt { font-weight: bold; }
div.figure { padding: 0.5em; }
div.figure p { text-align: center; }
.linenr { font-size:smaller }
.code-highlighted {background-color:#ffff00;}
.org-info-js_info-navigation { border-style:none; }
#org-info-js_console-label { font-size:10px; font-weight:bold;
white-space:nowrap; }
.org-info-js_search-highlight {background-color:#ffff00; color:#000000;
font-weight:bold; }
/*]]>*/-->
</style>
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
</head>
<body>
<div id="content">
<h1 class="title">underscores</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 foo </a></li>
</ul>
</div>
</div>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> foo </h2>
<div class="outline-text-2" id="text-1">
<p><a href="low_stats/berkeley_brady_2005.pdf">syllabus</a>
</p></div>
</div>
<div id="postamble">
<p class="author"> Author: Nick Dokos
<a href="mailto:nick@gamaville.dokosmarshall.org"><nick@gamaville.dokosmarshall.org></a>
</p>
<p class="date"> Date: 2009-07-03 15:31:44 EDT</p>
<p class="creator">HTML generated by org-mode 6.28trans in emacs 23</p>
</div>
</div>
</body>
</html>
[-- Attachment #3: Type: text/plain, Size: 200 bytes --]
This is with
GNU Emacs 23.0.93.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-05-11 on gamaville.dokosmarshall.org
Org-mode version 6.28trans - that's git latest (more or less).
Thanks,
Nick
[-- Attachment #4: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HTML export error with file link containing underscores
2009-07-03 19:35 ` Nick Dokos
@ 2009-07-03 21:23 ` Brenton Kenkel
2009-08-03 4:27 ` Carsten Dominik
0 siblings, 1 reply; 4+ messages in thread
From: Brenton Kenkel @ 2009-07-03 21:23 UTC (permalink / raw)
To: emacs-orgmode
> [Please provide version numbers for emacs and org-mode.]
Org-mode 6.28e in Aquamacs 1.8rc1, based on GNU Emacs 22.3.1. I get
the same result using Org-mode 6.21b in GNU Emacs 23.0.91.1.
> I cannot reproduce this.
It turns out that part of the problem was that I had included a radio
target named "<<<brady>>>" in the file I was working on. So when I
export a file consisting solely of the following:
* foo
[[file:low_stats/berkeley_brady_2005.pdf][syllabus]]
<<<brady>>>
I get the following HTML output (headers omitted):
<body>
<h1 class="title">testorg</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 foo </a></li>
</ul>
</div>
</div>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1">1 foo </h2>
<div id="text-1">
<p><a href="low<sub>stats</sub>/berkeley_[[brady">brady</a>_2005.pdf][syllabus]]
</p>
<p>
<a name="brady" class="target">brady</a>
</p></div>
</div>
<div id="postamble"><p class="author"> Author: Brenton Kenkel
<a href="mailto:brenton@hume"><brenton@hume></a>
</p>
<p class="date"> Date: 2009-07-03 17:16:12 EDT</p>
<p>HTML generated by org-mode 6.21b in emacs 23</p>
</div></body>
Am I going to need to remove the radio target to get the link to work,
or is there another way?
Thanks,
Brenton
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HTML export error with file link containing underscores
2009-07-03 21:23 ` Brenton Kenkel
@ 2009-08-03 4:27 ` Carsten Dominik
0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2009-08-03 4:27 UTC (permalink / raw)
To: Brenton Kenkel; +Cc: emacs-orgmode
Fixed, thanks.
- Carsten
On Jul 3, 2009, at 11:23 PM, Brenton Kenkel wrote:
>> [Please provide version numbers for emacs and org-mode.]
>
> Org-mode 6.28e in Aquamacs 1.8rc1, based on GNU Emacs 22.3.1. I get
> the same result using Org-mode 6.21b in GNU Emacs 23.0.91.1.
>
>> I cannot reproduce this.
>
> It turns out that part of the problem was that I had included a radio
> target named "<<<brady>>>" in the file I was working on. So when I
> export a file consisting solely of the following:
>
> * foo
> [[file:low_stats/berkeley_brady_2005.pdf][syllabus]]
> <<<brady>>>
>
> I get the following HTML output (headers omitted):
>
> <body>
> <h1 class="title">testorg</h1>
>
>
> <div id="table-of-contents">
> <h2>Table of Contents</h2>
> <div id="text-table-of-contents">
> <ul>
> <li><a href="#sec-1">1 foo </a></li>
> </ul>
> </div>
> </div>
>
> <div id="outline-container-1" class="outline-2">
> <h2 id="sec-1">1 foo </h2>
> <div id="text-1">
>
> <p><a href="low<sub>stats</sub>/berkeley_[[brady">brady</a>_2005.pdf]
> [syllabus]]
> </p>
> <p>
> <a name="brady" class="target">brady</a>
> </p></div>
> </div>
> <div id="postamble"><p class="author"> Author: Brenton Kenkel
> <a href="mailto:brenton@hume"><brenton@hume></a>
> </p>
> <p class="date"> Date: 2009-07-03 17:16:12 EDT</p>
> <p>HTML generated by org-mode 6.21b in emacs 23</p>
> </div></body>
>
> Am I going to need to remove the radio target to get the link to work,
> or is there another way?
>
> Thanks,
> Brenton
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-03 4:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-03 18:40 HTML export error with file link containing underscores Brenton Kenkel
2009-07-03 19:35 ` Nick Dokos
2009-07-03 21:23 ` Brenton Kenkel
2009-08-03 4:27 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.