From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Giraud Subject: Re: [BUG] Ugly checkbox on HTML export Date: Wed, 29 Jun 2011 17:02:43 +0200 Message-ID: <87oc1gbrzg.fsf@univ-nantes.fr> References: <81mxh0bxqi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbwHv-0004RK-PC for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 11:02:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbwHt-0006Jf-Kb for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 11:02:47 -0400 Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:43843 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbwHt-0006JT-80 for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 11:02:45 -0400 In-Reply-To: <81mxh0bxqi.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 29 Jun 2011 18:28:29 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org --=-=-= Jambunathan K writes: > A test file and the html output are attached. The "ugly" checkbox is > ugly only because it is unlike anyother checkboxes. This patch should do. Hope it doesn't break any other case. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-org-html.el-org-html-export-list-line-correct-the-ug.patch >From a316c18009b878c3edd2ef241fd42ba25b91246a Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Wed, 29 Jun 2011 16:57:03 +0200 Subject: [PATCH 2/2] * org-html.el (org-html-export-list-line): correct the ugly checkbox --- lisp/org-html.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 174ee4b..814b772 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -2532,7 +2532,7 @@ the alist of previous items." (string-match (concat "[ \t]*\\(\\S-+[ \t]*\\)" "\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\]\\)?" - "\\(?:\\(\\[[ X-]\\]\\)[ \t]+\\)?" + "[ \t]*\\(?:\\(\\[[ X-]\\]\\)[ \t]+\\)?" "\\(?:\\(.*\\)[ \t]+::\\(?:[ \t]+\\|$\\)\\)?" "\\(.*\\)") line) (let* ((checkbox (match-string 3 line)) -- 1.7.5 --=-=-= -- Manuel Giraud --=-=-=--