From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: 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 Message-ID: <87r30bxui7.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4Ra3-0003oJ-4X for emacs-orgmode@gnu.org; Sat, 29 Apr 2017 08:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4Ra0-0000tK-0t for emacs-orgmode@gnu.org; Sat, 29 Apr 2017 08:34:31 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:41604) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d4RZz-0000t6-Qt for emacs-orgmode@gnu.org; Sat, 29 Apr 2017 08:34:27 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by relay7-d.mail.gandi.net (Postfix) with ESMTPS id 7CB52134E for ; Sat, 29 Apr 2017 14:34:25 +0200 (CEST) In-Reply-To: (Li DebugFan's message of "Thu, 6 Apr 2017 14:27:40 +0800") 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: Li DebugFan Cc: emacs-orgmode Hello, Li DebugFan 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