emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: relative org file links get exported as href="http:./..." instead of href="./..." [7.01trans]
@ 2010-09-10 20:47 Kai Tetzlaff
  2010-09-12 18:05 ` David Maus
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Tetzlaff @ 2010-09-10 20:47 UTC (permalink / raw)
  To: emacs-orgmode


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

Since about 1 week (09-03), relative links between org-mode files within the
same publishing project get and additional 'http:' prefix in the href attribute.

Instead of

        <a href="./ip-on-cmw.html">

as in earlier versions the links are now converted to

        <a href="http:./ip-on-cmw.html">

and fail to resolve when browsing the exported files.



Emacs  : GNU Emacs 24.0.50.2 (x86_64-apple-darwin10.4.0, NS apple-appkit-1038.32)
 of 2010-09-10 on mack.tetzco.de
Package: Org-mode version 7.01trans

current state:
==============
(setq
 org-empty-line-terminates-plain-lists t
 org-log-done 'time
 org-file-apps '((auto-mode . emacs) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)
                 (directory dired-other-frame file))
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-link-frame-setup '((vm . vm-visit-folder-other-frame) (gnus . gnus-other-frame) (file . find-file-other-frame))
 org-special-ctrl-a/e 'reversed
 org-agenda-clockreport-parameter-plist '(:link nil :maxlevel 4)
 org-agenda-files '("~/.emacs.d/org/agenda")
 org-clock-persist-query-resume nil
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-publish-timestamp-directory "~/.emacs.d/tmp/org-timestamps/"
 org-babel-load-languages '((clojure . t) (css . t) (ditaa . t) (dot . t) (C . t) (gnuplot . t) (mscgen . t)
                            (perl . t) (python . t) (R . t) (ruby . t) (sh . t))
 org-hide-leading-stars t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-clock-out-when-done nil
 org-babel-tangle-lang-exts '(("ruby" . "rb") ("python" . "py") ("perl" . "pl") ("c++" . "cpp") ("clojure" . "clj")
                              ("emacs-lisp" . "el"))
 org-export-ascii-bullets '(42 43 45 126)
 org-clock-history-length 25
 org-agenda-start-with-log-mode t
 outline-minor-mode-prefix "\x03\x0f"
 org-special-ctrl-k t
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-publish-use-timestamps-flag nil
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-support-shift-select t
 org-clock-in-resume t
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tags-exclude-from-inheritance '("cmm" "cmn" "cmr")
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe)
 outline-regexp "\\*+ "
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-clock-persist t
 org-startup-indented t
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-M-RET-may-split-line '((default . t) (headline))
 org-default-notes-file "~/.emacs.d/org/notes.org"
 org-directory "~/.emacs.d/org/"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("NasTCs-org" :base-directory "~/.emacs.d/org/agenda/STF160" :base-extension "org"
                              :exclude "\\(org\\|html\\|css\\)" :publishing-directory "~/NasTcOverview"
                              :publishing-function (kt:publish-html org-publish-org-to-org) :plain-source t
                              :htmlized-source t :link-validation-function kt:copy-and-validate-link :title
                              "NAS Testcase Overview" :table-of-contents t :section-numbers nil :headline-levels 3
                              :sub-superscript nil :todo-keywords t :drawers t :tags not-in-toc :timestamps t
                              :auto-index nil :exclude-tags ("mdesc" "limpl") :style
                              "<link rel=\"StyleSheet\" href=\"css/nas.css\" type=\"text/css\">")
                             ("NasTCs-other" :base-directory "~/.emacs.d/org/agenda/STF160" :recursive t
                              :no-timestamps t :base-extension "css\\|js" :publishing-directory "~/NasTcOverview"
                              :publishing-function org-publish-attachment)
                             ("NasTCs" :components ("NasTCs-other" "NasTCs-org"))
                             ("UPC" :components ("UPC-html" "UPC-HOWTO-other"))
                             ("UPC-HOWTO-other" :base-directory "~/Documents/Work/RS/UPC" :recursive t :no-timestamps
                              t :base-extension "xml\\|dtd\\|txt\\|ppt\\|sh\\|conf\\|exe\\|bat" :publishing-directory
                              "~/UpcOnCmw" :publishing-function org-publish-attachment)
                             ("UPC-html" :base-directory "~/Documents/Work/RS/UPC" :recursive t :base-extension "org"
                              :exclude "upc_roadmap.org" :exclude-tags ("intern") :style-include-default nil
                              :publishing-directory "~/UpcOnCmw" :publishing-function org-publish-org-to-html :style
                              "<style type=\"text/css\">\n <!--/*--><![CDATA[/*><!--*/\n  html { font-family: Helvetica; font-size: 10pt; }\n  .title  { text-align: center; }\n  .target { }\n  .h5 { font-size: 10pt; }\n  ul { margin-left: 1% }\n  dl { margin-left: 1% }\n  p { margin-left: 1% }\n  p.verse { margin-left: 3% }\n  p.footnote { font-size: 10pt; line-height: 10%; margin-top: 1%; margin-bottom: 1% }\n  pre {\n	border: 1pt solid #AEBDCC;\n	background-color: #F3F5F7;\n	padding: 5pt;\n	font-family: courier, monospace;\n        font-size: 90%;\n        overflow:auto;\n  }\n  table { border-collapse: collapse; }\n  td, th { vertical-align: top; }\n  dt { font-weight: bold; }\n  div.figure { padding: 0.5em; }\n  div.figure p { text-align: center; }\n  div#postamble { text-align: right;
  font-size: 8pt; line-height: 40% }\n  pre.example { margin-left: 3%; width: 45pc }\n  textarea { overflow-x: auto; }\n  .linenr { font-size:smaller }\n  .code-highlighted {background-color:
 #ffff00;}\n  .org-info-js_info-navigation { border-style:none; }\n  /*]]>*/-->\n</style>")
                             ("CMerge" :base-directory "~/.emacs.d/org/agenda/STF160" :exclude ".*"
                              :publishing-directory "~/NasTcMerge" :publishing-function
                              (kt:publish-html org-publish-org-to-org) :link-validation-function
                              kt:copy-and-validate-link :title "Merge/Align EPS-only/Combined NAS TCs"
                              :table-of-contents nil :section-numbers nil :headline-levels 3 :sub-superscript nil
                              :todo-keywords t :drawers ("PROPERTIES") :tags nil :timestamps nil :auto-index nil
                              :select-tags ("cmm" "cmn" "cmr") :exclude-tags ("limpl" "tci"))
                             )
 org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
 org-mode-hook '(org-clock-load
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-clock-out-remove-zero-time-clocks t
 org-refile-targets '((org-agenda-files :maxlevel . 3) (nil :maxlevel . 3))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-return-follows-link t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-refile-use-outline-path 'file
 org-log-into-drawer t
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks))
 org-enforce-todo-dependencies t
 org-insert-heading-respect-content t
 org-insert-mode-line-in-empty-file t
 org-publish-after-export-hook '(kt:org-publish)
 org-occur-hook '(org-first-headline-recenter)
 org-yank-adjusted-subtrees t
 org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
 org-agenda-log-mode-items '(clock)
 outline-level-function 'outline-level-default
 org-remember-templates '(("Bug" 98 "* BUG %?\n  %i\n  %a" "agenda/bugs.org" "Bugs")
                          ("Todo" 116 "* TODO %?\n  %i\n  %a" "agenda/todo.org" "Tasks")
                          ("Testcase" 99 "* TODO-TC %?\n  %i\n  %a" "agenda/todo.org" "Testcase Issues")
                          ("Note" 110 "* %U %?\n\n  %i\n  %a" "agenda/notes.org" "Notes")
                          ("Idea" 105 "* %^{Title}\n  %i\n  %a" "agenda/journal.org" "New Ideas")
                          ("r" "RLC code review" entry (file+headline "~/Documents/Work/RS/code-reviews.org" "RLC")
                           "* DEFECT: %^{defect description}%?\n%(buffer-file-name (org-capture-get :original-buffer)):%(number-to-string (save-excursion (set-buffer (org-capture-get :original-buffer)) (line-number-at-pos (or (mark) (point)))))\n\n %i\n\n%a\n" :immediate-finish t)
                          (119 "* %^{Title}\n\n  Source: %u, %c\n\n  %i" nil "Notes"))
 org-clock-persist-file "~/.org-clock-save.el"
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames
                               org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil) (comment org-export-blocks-format-comment t)
                     (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil))
 )

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

* Re: Bug: relative org file links get exported as href="http:./..." instead of href="./..." [7.01trans]
  2010-09-10 20:47 Bug: relative org file links get exported as href="http:./..." instead of href="./..." [7.01trans] Kai Tetzlaff
@ 2010-09-12 18:05 ` David Maus
  0 siblings, 0 replies; 2+ messages in thread
From: David Maus @ 2010-09-12 18:05 UTC (permalink / raw)
  To: Kai Tetzlaff; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 902 bytes --]

Kai Tetzlaff wrote:

>Remember to cover the basics, that is, what you expected to happen and
>what in fact did happen.  You don't know how to make a good report?  See

>     http://orgmode.org/manual/Feedback.html#Feedback

>Your bug report will be posted to the Org-mode mailing list.
>------------------------------------------------------------------------

>Since about 1 week (09-03), relative links between org-mode files within the
>same publishing project get and additional 'http:' prefix in the href attribute.

>Instead of

>        <a href="./ip-on-cmw.html">

>as in earlier versions the links are now converted to

>        <a href="http:./ip-on-cmw.html">

>and fail to resolve when browsing the exported files.

Thanks for reporting.  This problem should be fixed in master now.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please 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] 2+ messages in thread

end of thread, other threads:[~2010-09-12 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 20:47 Bug: relative org file links get exported as href="http:./..." instead of href="./..." [7.01trans] Kai Tetzlaff
2010-09-12 18:05 ` David Maus

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).