emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Matthew Sauer <improv.philosophy@gmail.com>
Cc: nicholas.dokos@hp.com, Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [Use Question] Capture and long lines
Date: Wed, 22 Jun 2011 14:09:17 -0400	[thread overview]
Message-ID: <5115.1308766157@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Matthew Sauer <improv.philosophy@gmail.com> of "Wed, 22 Jun 2011 12:16:32 CDT." <BANLkTikoF4tXuNLLufRzNSD6k2ZYs7sUcg@mail.gmail.com>

Matthew Sauer <improv.philosophy@gmail.com> wrote:

> I have one structured org file I use for school that I leave in long
> lines.  The capture template I have setup has \n at the end of what I
> would want to be a line but is still stringing them together in one
> long line until i reach my wrap point.  My headline has my deadline in
> it and org recognizes the deadline but that isn't working to get a new
> line inserted (an actual hard return).  Org is recongnizing it as a
> new line but it just runs in one long line.  Am I missing something
> obvious or ????    If it isn't something obvious I will make up a
> sample target file, example of a capture and send them out to the
> group
> 
> * WORKING Read Chapter 9  :ENGL102: \n
> DEADLINE:<2011-06-28 Tue 18:30>\n  ADDEND:<2011-06-28 Tue
>  00:00>\n :
> 
> Also the logbook just keeps adding in as one long line
> :LOGBOOK: -State "STARTED  from "TODO" [2011-06-22 Wed 09:56] :END:
> 
> 

Looks as if you are escaping the newlines - are you using \\n in your
templates? If so, try losing one of the backslashes - or put explicit
newlines in the string which should amount to the same thing:

(setq org-capture-templates
'(                   ("t" "" entry (file+headline "~/lib/org/todo.org" "Tasks") "* TODO %?
  %U %a" :prepend t)
                     ...
))

Nick

  reply	other threads:[~2011-06-22 18:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22 17:16 Matthew Sauer
2011-06-22 18:09 ` Nick Dokos [this message]
2011-06-27  3:17   ` Matthew Sauer
2011-06-27  6:39     ` Nick Dokos

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=5115.1308766157@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=improv.philosophy@gmail.com \
    --subject='Re: [Use Question] Capture and long lines' \
    /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

Code repositories for project(s) associated with this 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).