From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li DebugFan Subject: No explicit way to add blank lines to the beginning or end of example or source blocks Date: Thu, 6 Apr 2017 14:27:40 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c07d9721a3502054c799bce Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cw0tT-0005oV-0u for emacs-orgmode@gnu.org; Thu, 06 Apr 2017 02:27:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cw0tR-0006yz-Sb for emacs-orgmode@gnu.org; Thu, 06 Apr 2017 02:27:43 -0400 Received: from mail-yw0-x22e.google.com ([2607:f8b0:4002:c05::22e]:34659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cw0tR-0006yq-NN for emacs-orgmode@gnu.org; Thu, 06 Apr 2017 02:27:41 -0400 Received: by mail-yw0-x22e.google.com with SMTP id p77so15882938ywg.1 for ; Wed, 05 Apr 2017 23:27:41 -0700 (PDT) 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" To: emacs-orgmode --94eb2c07d9721a3502054c799bce Content-Type: text/plain; charset=UTF-8 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? --94eb2c07d9721a3502054c799bce Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
No explicit way to add blank lines to the beginn= ing or end of example or source blocks.
For example: describing H= TTP header:
-----------------------------------------------------= --------------
HTTP header consists of colon-separated name-value= pairs,
and terminated by a CRLF character sequence, e.g.:
<= div>#+BEGIN_EXAMPLE
GET / HTTP/1.1

#+END_EXA= MPLE
This is line break at the end of HTTP header.
----= ---------------------------------------------------------------
B= ut the blank line at end of example block is not exported, and neither in s= rc block,
I check the source, and found it maybe because of the f= unction `org-split-string',
its description as follow:
<= div>(defun org-split-string (string &optional separators)
=C2= =A0 "Splits STRING into substrings at SEPARATORS.
No empty s= trings are returned if there are matches at the beginning
and end= of string."
=C2=A0 ...)
It means `org-split-strin= g' 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?
--94eb2c07d9721a3502054c799bce--