emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] No explicit way to add blank lines to the beginning or end of ex


From: Nicolas Goaziou
Subject: Re: [O] No explicit way to add blank lines to the beginning or end of example or source blocks
Date: Sat, 29 Apr 2017 14:34:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Li DebugFan <address@hidden> writes:

> No explicit way to add blank lines to the beginning or end of example or
> source blocks.
> For example: describing HTTP header:
> -------------------------------------------------------------------
> HTTP header consists of colon-separated name-value pairs,
> and terminated by a CRLF character sequence, e.g.:
>
> #+BEGIN_EXAMPLE
> GET / HTTP/1.1
> Host: www.example.com
>
> #+END_EXAMPLE
>
> This is line break at the end of HTTP header.
> -------------------------------------------------------------------
> But the blank line at end of example block is not exported, and neither in
> src block,
> I check the source, and found it maybe because of the function
> `org-split-string',
> its description as follow:
> (defun org-split-string (string &optional separators)
>   "Splits STRING into substrings at SEPARATORS.
> No empty strings are returned if there are matches at the beginning
> and end of string."
>   ...)
> It means `org-split-string' will ignore all blank lines at the beginning
> and the end,
> but what if I need some blank lines in the beginning or the end?

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]