From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sFHNJsbptWAuKQEAgWs5BA (envelope-from ) for ; Tue, 01 Jun 2021 10:03:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EPggIsbptWASTAAA1q6Kng (envelope-from ) for ; Tue, 01 Jun 2021 08:03:18 +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 E9D6113BF9 for ; Tue, 1 Jun 2021 10:03:17 +0200 (CEST) Received: from localhost ([::1]:52586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnzMq-0007ig-1x for larch@yhetil.org; Tue, 01 Jun 2021 04:03:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnzJm-00042v-1B for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 04:00:06 -0400 Received: from mail-ua1-x931.google.com ([2607:f8b0:4864:20::931]:43963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnzJk-0001Py-4Q for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 04:00:05 -0400 Received: by mail-ua1-x931.google.com with SMTP id f1so7941487uaj.10 for ; Tue, 01 Jun 2021 01:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=H9nBum2aXTUftZ0rpOh3DuY2uhgCT+Pp3qjpyHwf10Y=; b=PkpRxbhs2FJEEGuxArS4yvsoxBRcQ0Uj3pyieT29MT8AFCN5twfH5v6jeFXQiyOEqH 4PjKKd3pEryq/M5xD/KjMnxSlY8S0YC5L/NotNcbUmszAhuiITIwHcWHWeR9XrOOdoI9 64uOztTreg44p7bpIAaLbYxHn4z8mjjFzJDVIVmAeqBk9C2oKPJ+76Qu+WV9NIGbOBSF n837vP5G4bG8YC8xHtZ3G/hZ4GGz2vaeyZosoN+CVh/y2Lh67gjn5fbsHaEOhYCEZhEU Eq8ebnm5I+uxno/5rN/34b7/lTGSlJ1jmLtPMjoZgTpyQ8e9va7ZU8jbiSUqOyT92Af6 GpqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=H9nBum2aXTUftZ0rpOh3DuY2uhgCT+Pp3qjpyHwf10Y=; b=OT2qE1pVBOugBs+8Fm6cMUpZOZSh1VSm0NMONBGoEFg6ovDuNVXuw2AZnfhLpKBAoJ rITffgk5+E9RZ3A7HmIXP7J2zBdxvyjXUh57nPB7b0jC8jLKlvfzdQFuzyJCSTLunpV/ xNzTvsGl+7D9tpX+eTLohMRlbtRFaswQjyGX5FyJ872r6FcoNyLwz4fP9YJpWPcCZ8/G eg4t2DKQfk5mIY3M0637jIJAVpEmHxwYUKtsFYZj/KKPNc89PVpp9QLvbtzGP96ZzBAu GcYuTKlBLtLSaWcdpoN8wnemwIdP+8ZUZzd8JhP2deQqoer4EWSAxERVohWzAAe3gj3W x6Kw== X-Gm-Message-State: AOAM531za3hIkcqn5hUpLo8nvjnRa96i8q2qlY+m/DVPjtIsQN7EROEj zf7sfYyPoxlfr/AvRs6PldtMP+51bp/5nmO+l2hJtQXgD6G3pg== X-Google-Smtp-Source: ABdhPJxmq6fjziHrPpt9MRMUeyCmXT2Gscel1FFJhXrDOrPP1GOJ8SceBaJHcc+1G/luzrUBKITpgqJXkUKv3M/L8co= X-Received: by 2002:ac5:c941:: with SMTP id s1mr15983601vkm.23.1622534401616; Tue, 01 Jun 2021 01:00:01 -0700 (PDT) MIME-Version: 1.0 From: Dov Grobgeld Date: Tue, 1 Jun 2021 10:59:50 +0300 Message-ID: Subject: Newline woes when exporting to mediawiki markup To: emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000a4eecc05c3afbae4" Received-SPF: pass client-ip=2607:f8b0:4864:20::931; envelope-from=dov.grobgeld@gmail.com; helo=mail-ua1-x931.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622534598; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=H9nBum2aXTUftZ0rpOh3DuY2uhgCT+Pp3qjpyHwf10Y=; b=GCx+2BI1Ww5s1fwEbHelmYD4IuRDE+5xJCP7cLwfi2RiSv+BFOj5Wo3ixefHZUllz6ex6D T20N3TACTE7lsn4zZNsB8SS6hNzzidUcLYE5U/k5Sf1Nlrpd0Du3VqlZKD/ZabDoPxIrAh k96eL0u6tbf9V8yDkfo6KSFScsoFeGXU2dT7Rsk4M0Z56x7Jl+roO0cnZOHrVfMRCHy/Cc 4HsTAwmpnVGHlZh4gcpRxcKpz7nJq5pKl4e7+ULcMB1lVPGpJSPXrpPOoJYKS4/4O5b3o/ q5HmIgfRHmaaxn8971huiSJ7Qjr7UNQ2fsDBUtQO5PwTcQpUR9/6bzWrwUxnFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622534598; a=rsa-sha256; cv=none; b=qIXNVDBS470VqbLbTaOibZ5rmObo6MyWN1fIiD/jQD26Oubme+/Z7RfVqFWqb0R58xdQCa vuUDAZ/d5DfDq8Q+0lqCmNkvlSOqGzAVsqObIx9UeUtY9CTpnSulY/SUvFJKRXjZ3CWyxK P4VOCfh/jWc3ILbaEeLxM3sVPKx8ihhQ4+PefHT32jXjQanjvrOEXOOWxk2tmxdeGg+bis Z9RI+A4+UHpXl+dr+EHMN5dzMcSEl1CR5p+/bAAdz7kbFgJwgcfjBqt1F6LeIHS96XHAtJ CKMUe/UiQyL+dmjVLVIzAyrYogPh5te/rI8jTm/TES6jcvUCvU+IxVSlpiABYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=PkpRxbhs; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=PkpRxbhs; dmarc=pass (policy=none) header.from=gmail.com; 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: E9D6113BF9 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: CkNCqUqXA1VY --000000000000a4eecc05c3afbae4 Content-Type: text/plain; charset="UTF-8" Hello, I've been trying to use the ox-mediawiki.el export option to export from org mode to mediawiki mode. Unfortunately the exporting does a poor job of exporting lists. E.g. the following org mode source: ``` * A section - An item - Another item - A subitem - Another subitem - Back to first ``` is exported as: ``` = A section = * An item * Another item * A subitem * Another subitem * Back to first ``` The expected is: ``` = A section = * An item * Another item ** A subitem ** Another subitem * Back to first ``` I tried to modify ox-mediawiki.el to solve the following two issues: - Get rid of redundant newlines between exported list items - Replicate the leading asterisk to reflect the indentation level of the list. To get of the newline I tried to rewrite the org-export "item" translation function `org-mw-item` but I would either get no newlines at all between my items, or an extra newline between two subsequent items. I just noted that ox-mediawiki is derived from the html backend, so perhaps the limitations are there. I would appreciate any guidance of how to fix this. Thanks! --000000000000a4eecc05c3afbae4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I've been tryi= ng to use the ox-mediawiki.el export option to export from org mode to medi= awiki mode.

Unfortunately the exporting does a poor jo= b of exporting lists. E.g. the following org mode source:

```
* A section
=C2=A0 - An item
=C2=A0 - Another i= tem
=C2=A0 =C2=A0 - A subitem
=C2=A0 =C2=A0 - Another subitem
=C2= =A0 - Back to first
```

is exported as:
```=

=3D A section =3D
* An item

* Another item
=C2=A0
= =C2=A0 * A subitem
=C2=A0
=C2=A0 * Another subitem

* Back to = first

```
The expected is:
```
=3D= A section =3D

* An item
* Another item
** A subitem
** Ano= ther subitem
* Back to first
```
I tried= to modify ox-mediawiki.el to solve the following two issues:

<= /div>
- Get rid of redundant newlines between exported list items
- Replicate the leading asterisk to reflect the indentation level of the l= ist.

To get of the newline I tried to rew= rite the org-export "item" translation function `org-mw-item` but= I would either get no newlines at all between my items, or an extra newlin= e between two subsequent items.

I just noted that ox-m= ediawiki is derived from the html backend, so perhaps the limitations are t= here.

I would appreciate any guidance of how to fix th= is.

Thanks!


--000000000000a4eecc05c3afbae4--