emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Christopher W. Ryan" <cryan@binghamton.edu>
To: orgmode <emacs-orgmode@gnu.org>
Subject: how to get verbatim text with line breaks
Date: Wed, 3 Nov 2021 15:58:40 -0400	[thread overview]
Message-ID: <07d4475a-d5bc-ea04-0c99-302506c24479@binghamton.edu> (raw)

I have this in an org file

0,Mon [start_plus_0] at 03:00 PM
30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM
90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM

I want to export to ASCII text and have it look exactly like that, 5 lines.

Doing nothing, I get 3 lines

0,Mon [start_plus_0] at 03:00 PM 30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM 90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM


Trying various source and example blocks gets me partway there:


#+BEGIN_EXAMPLE
0,Mon [start_plus_0] at 03:00 PM
30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM
90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM
#+END_EXAMPLE

produces

,----
| 0,Mon [start_plus_0] at 03:00 PM
| 30,Mon [start_plus_0] at 03:30 PM
| 60,Mon [start_plus_0] at 04:00 PM
| 90,Mon [start_plus_0] at 04:30 PM
| 120,Mon [start_plus_0] at 05:00 PM

5 lines, but I don't want the leading pipe characters, the comma, or the
4 hyphens


#+BEGIN_VERSE
0,Mon [start_plus_0] at 03:00 PM
30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM
90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM
#+END_VERSE

yields

      0,Mon [start_plus_0] at 03:00 PM
      30,Mon [start_plus_0] at 03:30 PM
      60,Mon [start_plus_0] at 04:00 PM
      90,Mon [start_plus_0] at 04:30 PM
      120,Mon [start_plus_0] at 05:00 PM

5 lines, but with undesired indentation


Nor does #+BEGIN_VERBATIM  or #+BEGIN_SRC text   give me what I am
looking for.

Grateful for suggestions.

Thanks

--Chris Ryan



             reply	other threads:[~2021-11-03 19:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-03 19:58 Christopher W. Ryan [this message]
2021-11-03 20:23 ` how to get verbatim text with line breaks Marco Wahl

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=07d4475a-d5bc-ea04-0c99-302506c24479@binghamton.edu \
    --to=cryan@binghamton.edu \
    --cc=emacs-orgmode@gnu.org \
    /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).