emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Eric S Fraga <ucecesf@ucl.ac.uk>,
	Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [patch] two bugs: one with comments and with exporting	inline tasks
Date: Thu, 04 Nov 2010 08:51:12 +0100	[thread overview]
Message-ID: <87lj59cyrz.wl%n.goaziou@gmail.com> (raw)
In-Reply-To: <87mxppcz8r.wl%n.goaziou@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

Please disregard the last patch: it is buggy. Here is the new one.

Also, there is only one patch, even though it says [1/2].

-- Nicolas


[-- Attachment #2: 0001-inlinetasks-fix-latex-export-wrt-conversion-to-lists.patch --]
[-- Type: text/plain, Size: 2103 bytes --]

From e800cbfbb9e44d69f14bee874ce62e9a23224dab Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <n.goaziou@gmail.com>
Date: Thu, 4 Nov 2010 08:03:48 +0100
Subject: [PATCH 1/2] inlinetasks: fix latex export wrt conversion to lists

* org-inlinetask.el (org-inlinetask-export-handler): Remove protection
  from @<span class...> so it can be removed during LaTeX export.
---
 lisp/org-inlinetask.el |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el
index c000999..e67772e 100644
--- a/lisp/org-inlinetask.el
+++ b/lisp/org-inlinetask.el
@@ -183,15 +183,13 @@ Either remove headline and meta data, or do special formatting."
 	  (setq headline (concat
 			  (if (match-end 2)
 			      (concat
-			       (org-add-props
-				   (format
-				    "@<span class=\"%s %s\"> %s@</span>"
-				    (if (member (match-string 2 headline)
-						org-done-keywords)
-					"done" "todo")
-				    (match-string 2 headline)
-				    (match-string 2 headline))
-				   nil 'org-protected t)
+			       (format
+				"@<span class=\"%s %s\"> %s@</span>"
+				(if (member (match-string 2 headline)
+					    org-done-keywords)
+				    "done" "todo")
+				(match-string 2 headline)
+				(match-string 2 headline))
 			       " ") "")
 			  (match-string 4 headline)))
 	  (when content
@@ -200,11 +198,11 @@ Either remove headline and meta data, or do special formatting."
 	      (if (string-match "[ \t\n]+\\'" content)
 		  (setq content (substring content 0 (match-beginning 0))))
 	      (setq content (org-remove-indentation content))
-	      (if latexp (setq content (concat "\\quad \\\\\n" content)))))
+	      (setq content (if latexp (concat "\\nbsp\\\\ \\quad " content)))))
 	  (insert (make-string (org-inlinetask-get-current-indentation) ?\ )
-		  "- ")
+		  "-  ")
 	  (setq indent (make-string (current-column) ?\ ))
-	  (insert headline " ::")
+	  (insert headline " :: ")
 	  (if content
 	      (insert (if htmlp " " (concat "\n" indent))
 		      (mapconcat 'identity (org-split-string content "\n")
-- 
1.7.3.2


[-- Attachment #3: 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

  reply	other threads:[~2010-11-04  7:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02 10:46 [bug] two bugs: one with comments and with exporting inline tasks Eric S Fraga
2010-11-02 19:27 ` Nicolas Goaziou
2010-11-02 20:51   ` Eric S Fraga
2010-11-02 23:11     ` Eric S Fraga
2010-11-04  7:41       ` Nicolas Goaziou
2010-11-04  7:51         ` Nicolas Goaziou [this message]
2010-11-04  8:01           ` [patch] " Nicolas Goaziou
2010-11-04 10:24             ` Eric S Fraga
2010-11-04 14:05               ` Nicolas Goaziou
2010-11-04 14:21                 ` Eric S Fraga
2010-11-04 14:42                   ` Nicolas Goaziou
2010-11-04 15:22                     ` Eric S Fraga
2010-11-04 15:28                       ` Nicolas Goaziou
2010-11-04 16:17                         ` Eric S Fraga
2010-11-04 16:32                           ` Sébastien Vauban
2010-11-04 17:45                             ` Nicolas Goaziou
2010-11-05  8:01                               ` Sébastien Vauban
2010-11-05  8:58                               ` Sébastien Vauban
2010-11-05 12:50                                 ` Eric S Fraga
2010-11-05 12:50                               ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lj59cyrz.wl%n.goaziou@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ucecesf@ucl.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).