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: Sun, 20 Aug 2017 02:10:18 -0400 Message-ID: <15dfe436e46.b8b6ef9b74731.2577979606530454620@zoho.com> References: <15dee1721ff.1065cbcc844521.4283798913058133@zoho.com> <877ey2p8li.fsf@nicolasgoaziou.fr> <15df361600a.dcb2427f56777.4781339305326245219@zoho.com> <87bmnclzrp.fsf@nicolasgoaziou.fr> <15dfa141138.d7a2f77770373.398406515407829618@zoho.com> <87378nlqln.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]:56143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djJRL-0000oJ-Lt for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 02:10:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djJRH-0007AD-Hm for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 02:10:27 -0400 Received: from sender-pp-091.zoho.com ([135.84.80.236]:25052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djJRH-00076i-9e for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 02:10:23 -0400 In-Reply-To: <87378nlqln.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 Sat, 19 Aug 2017 07:55:00 -0400 Nicolas Goaziou wrote ---- > OK. So could you tell me what should be the style name? > > Do we need to add it to some style file somewhere? If so, what would be > its definition? OK, I just got the expected output by the following: - Add "OrgListTextBody" to the stylesheet. I didn't try to do it directly in text (I don't know ODT XML that well). I created the style with that name in LO, setting the indent parameters to 0. That gave me this definition in styles.xml: It's probably enough to specify only ~fo:text-indent="0in"~, but I didn't test that because I'm not sure how to write the modified styles.xml back into the ODT archive. (LO auto-generated all 4 parameters.) - Then, use my filter to apply OrgListTextBody to the paragraphs contained within list items. The resulting display in LO is correct. hjh