From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: ox-odt: List items contain body paragraphs, confusing styles Date: Thu, 17 Aug 2017 23:27:11 -0400 Message-ID: <15df361600a.dcb2427f56777.4781339305326245219@zoho.com> References: <15dee1721ff.1065cbcc844521.4283798913058133@zoho.com> <877ey2p8li.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diXwP-0002Ll-P2 for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 23:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diXwM-0006ka-I9 for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 23:27:21 -0400 Received: from sender-pp-091.zoho.com ([135.84.80.236]:25057) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1diXwM-0006i3-9q for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 23:27:18 -0400 In-Reply-To: <877ey2p8li.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou , emacs-orgmode ---- On Thu, 17 Aug 2017 10:33:29 -0400 Nicolas Goaziou wrote ---- > So, what style-name should have the inner paragraph? If it is a new > style, what would be its definition? > > It's not difficult to check, upon exporting a paragraph, if it belongs > to a list item or not: (org-element-lineage paragraph '(item)) > > BTW, is it different for nested paragraphs, e.g., what should be the > style for the following 3 paragraphs: > > - para 1 > > para 2 > > - para 3 Hm. Good question. I'm going to admit to a bit of frustration now... after about 45 minutes poking around in XML, I did a fresh ox-odt test with a fresh style sheet, and I can't reproduce the problem. !!! Hours, over the last two days, wasted. So I must have done something funky to that initial stylesheet. (WYSIWYG tools, who knows what it could be. Really teed off at that journal for not allowing LaTeX.) So I would say, postpone this issue unless I can gather more evidence. A short answer to your questions is that every list item does consist of paragraphs, and each paragraph must have a paragraph style, but -- the paragraph style can be the same one, even at different list levels. There is no need for a different paragraph style for each list level, and you don't have to do anything special for multiple paragraphs within a list item. hjh