From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonas Bernoulli Subject: ox-texinfo: empty line before "* Menu:" is missing Date: Wed, 06 Apr 2016 19:51:35 +0200 Message-ID: <87wpoahbh4.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anrcL-0005lk-Jr for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 13:51:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anrcI-0004Wj-Bp for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 13:51:49 -0400 Received: from mail.hostpark.net ([212.243.197.30]:57807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anrcI-0004Ui-4B for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 13:51:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 2B72116B40 for ; Wed, 6 Apr 2016 19:51:41 +0200 (CEST) Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id zABPUv5fMSgM for ; Wed, 6 Apr 2016 19:51:41 +0200 (CEST) Received: from hal (80-218-86-217.dclient.hispeed.ch [80.218.86.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 024A916B3D for ; Wed, 6 Apr 2016 19:51:40 +0200 (CEST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello Given this Org file #+TITLE: Demo Manual #+TEXINFO_DIR_CATEGORY: Emacs #+TEXINFO_DIR_TITLE: Demo: (demo). #+TEXINFO_DIR_DESC: Demo. * Missing empty line There is text between the heading and the menu ** There is text before this menu ** the empty line before Menu IS missing * Has empty line ** There is no text between heading and this menu ** the empty line before Menu is NOT missing using C-c C-e i i produces a texi file containing There is text between the heading and the menu @menu and an info file containing There is text between the heading and the menu * Menu: and that is then also displayed like that in Info. But there should be an empty line before "* Menu:". This can be fixed in `org-texinfo-make-menu' by replacing "@menu\n%s@end menu" with "\n@menu\n%s@end menu". In rare cases (which I have not further investigated) this change leads to two empty lines in the texi file where there should only be one, but these two empty lines won't make it into the info file, which after all is what really matters here, after all that's what the end-user will be looking at. The behavior is currently the same in "maint" and "master". Best regards, Jonas