projects
/
chise
/
est.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dcde99
)
(www-xml-format-unit): Support tag style `ref' in `link'.
author
MORIOKA Tomohiko
<tomo@kanji.zinbun.kyoto-u.ac.jp>
Fri, 19 Mar 2010 04:02:48 +0000
(13:02 +0900)
committer
MORIOKA Tomohiko
<tomo@kanji.zinbun.kyoto-u.ac.jp>
Fri, 19 Mar 2010 04:02:48 +0000
(13:02 +0900)
cwiki-common.el
patch
|
blob
|
history
diff --git
a/cwiki-common.el
b/cwiki-common.el
index
4ca601c
..
4f62691
100644
(file)
--- a/
cwiki-common.el
+++ b/
cwiki-common.el
@@
-725,7
+725,7
@@
dest))
(defun www-xml-format-unit (format-unit)
- (let (name props children)
+ (let (name props children ret)
(cond
((stringp format-unit)
format-unit)
@@
-733,6
+733,13
@@
(setq name (car format-unit)
props (nth 1 format-unit)
children (nthcdr 2 format-unit))
+ (when (eq name 'link)
+ (setq ret (plist-get props :ref))
+ (unless (stringp ret)
+ (setq props (plist-remprop (copy-list props) :ref))
+ (setq children
+ (cons (list* 'ref nil ret)
+ children))))
(if children
(format "<%s%s>%s</%s>"
name