From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iH72Fom2Yl+vHQAA0tVLHw (envelope-from ) for ; Thu, 17 Sep 2020 01:06:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eJzEEom2Yl8KPwAAbx9fmQ (envelope-from ) for ; Thu, 17 Sep 2020 01:06:17 +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 B5B899402CC for ; Thu, 17 Sep 2020 01:06:16 +0000 (UTC) Received: from localhost ([::1]:46852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIiNL-0005Rg-B7 for larch@yhetil.org; Wed, 16 Sep 2020 21:06:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIiN0-0005RY-Ot for emacs-orgmode@gnu.org; Wed, 16 Sep 2020 21:05:54 -0400 Received: from smtprelay0031.hostedemail.com ([216.40.44.31]:35780 helo=smtprelay.hostedemail.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIiMz-0000qv-2T for emacs-orgmode@gnu.org; Wed, 16 Sep 2020 21:05:54 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id DD162180A9F56 for ; Thu, 17 Sep 2020 01:05:50 +0000 (UTC) X-Session-Marker: 74696D40747175656C63682E636F6D X-Spam-Summary: 2, 0, 0, , d41d8cd98f00b204, tim@tquelch.com, , RULES_HIT:41:355:379:973:988:989:1260:1277:1313:1314:1345:1381:1437:1516:1518:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:4362:5007:6261:7903:10004:10400:10848:11658:11914:12297:12663:12679:13069:13071:13075:13311:13357:14180:14721:14819:21060:21080:21433:21451:21627:21939:30012:30041:30054:30079, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:, MSBL:0, DNSBL:none, Custom_rules:0:0:0, LFtime:1, LUA_SUMMARY:none X-HE-Tag: juice99_180cc432711e X-Filterd-Recvd-Size: 1722 Received: from localhost (180-150-39-252.b49627.bne.nbn.aussiebb.net [180.150.39.252]) (Authenticated sender: tim@tquelch.com) by omf18.hostedemail.com (Postfix) with ESMTPA for ; Thu, 17 Sep 2020 01:05:49 +0000 (UTC) From: Tim Quelch To: emacs-orgmode@gnu.org Subject: Configuring text export block output Date: Thu, 17 Sep 2020 11:06:38 +1000 Message-ID: <87o8m5p5y9.fsf@quelch.name> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=216.40.44.31; envelope-from=tim@tquelch.com; helo=smtprelay.hostedemail.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/16 21:05:51 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=tquelch.com (policy=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-Spam-Score: -0.91 X-TUID: srbb3ndb4wm1 Hi all, Is there a way to configure how text is exported in ascii? For example if I have a source block #+begin_src python Some code here with multiple lines #+end_src With `org-ascii-export-as-ascii` the above block gives: ,---- | Some code here | with multiple lines `---- I don't really like this as the '|' at the start of the lines make it annoying to copy and paste. Is there a way to configure the export to give something surrounded by backticks? ```python Some code here with multiple lines ``` I've had a look into the available `org-ascii-*` customise variables and I couldn't see anything which looked to give this functionality. Preferably I'd love a way if I could configure this locally and programatically, as in some contexts I might still want the "prettier" output of the default, but in other contexts I might want the more "practical" output of backticks. Side question: Perhaps what I am wanting can be achieved with markdown export, however it seems that the default markdown exporter exports code indented. This has the same problem of being frustrating to copy-paste. Is there a way to configure the md exporter to use fenced code blocks? Thanks, Tim Quelch