Pb with links publication
Arnaud Bailly <[email protected]> Mon, 03 Jul 2006 15:53:25 +0200
| Newsgroups | gmane.emacs.wiki.general |
|---|---|
| Organization | OQube |
| Message-ID | <[email protected]> |
Hello,
I have troubles publishing a site with hierarchical layout: When the
link is a page inside a directory like [[mydir/mypage][page]], it gets
incorrectly published (in XHTML mode as):
=20
<a href=3D"mydir/mypage">page</a>
ie. without the suffix .html.
I tried to track the problem and it seems to be in function
muse-page-name:
(defun muse-page-name (&optional name)
"Return the canonical form of a Muse page name.
All this means is that certain extensions, like .gz, are removed."
(save-match-data
(unless (and name (not (string=3D name "")))
(setq name (muse-current-file)))
(if name
(let ((page (file-name-nondirectory name)))
^^^^^^^^^^^^^^^^^^^^^^
(if (and muse-ignored-extensions-regexp
(string-match muse-ignored-extensions-regexp page))
(replace-match "" t t page)
page)))))
This function strips the directory part from the name. (or so I
think). I tried to remove this call but it seems that another regexp
expects a name without '/' as links get published to default page.
Help would be greatly appreciated.
--=20
OQube < software engineering \ g=E9nie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com