From 951849d0d0aa8bf2931928eef368ade9a7192bda Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Mon, 5 Apr 2010 03:58:58 +0900 Subject: [PATCH] (www-format-props-to-string): When `:len' is specified, treat `:zero-padding' is specified. --- cwiki-common.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cwiki-common.el b/cwiki-common.el index 3b2d80c..a03be66 100644 --- a/cwiki-common.el +++ b/cwiki-common.el @@ -689,10 +689,10 @@ (setq format (plist-get props :format))) (concat "%" (plist-get props :flag) - (if (plist-get props :zero-padding) - "0") + ;; (if (plist-get props :zero-padding) + ;; "0") (if (plist-get props :len) - (format "%d" (plist-get props :len))) + (format "0%d" (plist-get props :len))) (cond ((eq format 'decimal) "d") ((eq format 'hex) "x") -- 1.7.10.4