From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cAq7OHPYK2CsJwAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 14:36:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2Pd4NHPYK2A9cgAAB5/wlQ (envelope-from ) for ; Tue, 16 Feb 2021 14:36:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 597391CA6D for ; Tue, 16 Feb 2021 15:36:35 +0100 (CET) Received: from localhost ([::1]:42548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC1Sr-0003l4-Cj for larch@yhetil.org; Tue, 16 Feb 2021 09:36:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC1SQ-0003jr-0n for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 09:36:06 -0500 Received: from ciao.gmane.io ([116.202.254.214]:40842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC1SN-00030P-Gq for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 09:36:05 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lC1SI-0007G3-L3 for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 15:35:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: "Loris Bennett" Subject: Re: Toggle headline underlining in text export? Date: Tue, 16 Feb 2021 15:35:52 +0100 Message-ID: <87wnv8krlj.fsf@hornfels.zedat.fu-berlin.de> References: <87v9asmixj.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:ZfgBsud/Rp5m4PfWG+7spksQ7ws= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.64 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 597391CA6D X-Spam-Score: 0.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: HXKUg8LndLEy Hi Vladimir, Vladimir Lomov writes: > Hello, > ** Loris Bennett [2021-02-16 11:00:08 +0100]: > >> Hi, > >> I have an Org file which I export to a text file. A separate program I >> have written then uses this text file as the body of an email which is >> sent to a number of people. > >> The problem I have is that the underlining of the headlines is much >> longer than the headline text itself if a proportional font is used to >> view the email. > > This contradicts a bit to first paragraph. I would assume that you export to > text format to send email message as plain text. I'm not sure what contradiction you are referring to. I am indeed exporting the a text format and in this text format the top-level headlines are underlined with either a '=' if I export to ASCII or some UTF symbol if I export to UTF-8. Whether the underlining is the same length as the headline itself depends on whether the font used to display the text is fixed-width or proportional. >> As most of the recipients will probably not be using a fixed-width font for >> their mail clients, > > And this assumes that they are fine with html messages otherwise they would > use fixed-width font. I'm not sure this is true. Someone might not like HTML mail for security reasons, but still might use a proportional font. In addition, at least a few of the recipients certainly will be using a fixed-width font. >> I would like to be able to toggle the underlining and just rely on the >> numbering of the headlines. > >> I'd didn't find anything which seemed relevant here > >> https://orgmode.org/manual/Export-Settings.html > >> so is this possible? Is there a (better) alternative? > > May be send them a html message? I could do, but I'd rather not :-) Cheers, Loris -- This signature is currently under construction.