From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cBR0DJVFmmP5dQAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 22:52:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sCyQC5VFmmOJXgEAG6o9tA (envelope-from ) for ; Wed, 14 Dec 2022 22:52:21 +0100 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 DF4482486A for ; Wed, 14 Dec 2022 22:52:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5ZfN-0003Ku-O7; Wed, 14 Dec 2022 16:51:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5ZfG-0003Ka-7f for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 16:51:46 -0500 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5ZfE-00068y-Me for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 16:51:46 -0500 Received: by mail-pg1-x52c.google.com with SMTP id b12so224611pgj.6 for ; Wed, 14 Dec 2022 13:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3ApLkRQwilhp1F0DTzeAFCEV+OpHD893iXIqjPCprQ4=; b=BuQysG7PMksto7Kj4UhptrV7Q2n8MfsC3uZ00bXIDIlpLKzbnBV1/atMThJUBy+oQP 7uYe5163skn3S+2rrsiqxlAoTJFKkZOyozxx2wuZNyPhglWzmzbiKqZqisE6u4SNZj75 mFfvqFXEXoKroxY8avy3OhSdBkym9b25CvOtq7zT6fHdAaZcjjQwTCIOccYpolw34GN1 jjShZy9EmjYioBfx/2BG//W9vXEy+ovV3QOoSUAKJQQknswIS+VH1G7GO6F6cVJ42NI0 Df59wos2ANCROVnyVnYf5gXC5+CzQHevSTWak9sOGJd+6r/05FZU0VR9ANo6QshApL+8 uN0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3ApLkRQwilhp1F0DTzeAFCEV+OpHD893iXIqjPCprQ4=; b=OgFxHGXERy03ipZMlgIC39IxlVZq/XOknuk+Flyf7n8yUuRnBEjbl2Rl2aB1NYfYBd 3ExUF1rpVwZQTvduXd2F3C0ggyzDGmCF8uWqKBvMA4RdQ6f0dpWdYiMH62BG7BIBh35F Ag5lmUSv1aFWBYc+fB1fOyPlxRsDWIgqASpfoFlQhfr4nrN27n0WZGCK+t9/UsVVpyCV lke3Ab90q4YxZoFWTlOd7qLpw3lGV/O6R/faP4XkDTK4y0+xl78RDpozUMYAphjma8vs XrMEWn+kClH0xLTKGT9Jk6MELDpStpwjx0GUhGrERk6aLgeLyQ9BNN19KDh9jmGtbo1A mFsg== X-Gm-Message-State: ANoB5pntfcBt4iO5aSabQLeIA+I8rZQH5/S0zshvW2d96S6qnzb9JIPH 2PkQ4wfNrd/IEOhJB+ViWg2D7aDOkCJVffwmK5eDXAG6 X-Google-Smtp-Source: AA0mqf5o+jqp0xueACPIf/p687wErxdVSoguaifKLw19AV8LFL3Uf6vcGqGTpKC37HlsVpvbi8ae/wTRxr6hQNs1REg= X-Received: by 2002:aa7:8dd3:0:b0:573:4ae5:e475 with SMTP id j19-20020aa78dd3000000b005734ae5e475mr79036968pfr.64.1671054702048; Wed, 14 Dec 2022 13:51:42 -0800 (PST) MIME-Version: 1.0 References: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> In-Reply-To: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> From: Kaushal Modi Date: Wed, 14 Dec 2022 16:51:30 -0500 Message-ID: Subject: Re: [BUG] ox-html does not export captions of source blocks without language To: =?UTF-8?Q?Johan_Bolmsj=C3=B6?= Cc: emacs-org list Content-Type: multipart/alternative; boundary="000000000000ea7a6505efd0bd81" Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=kaushal.modi@gmail.com; helo=mail-pg1-x52c.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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671054740; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3ApLkRQwilhp1F0DTzeAFCEV+OpHD893iXIqjPCprQ4=; b=Dj13SUXHIvP6HdtiTtXvccxwSdeJZ4aC4IigdoB1P48xIRZYo+6eqUfAaf9O7V0GLTBoy1 sm2UK8Ut+htv9uy1K7TuOIwvYB7TwqErwz7Iq3BcDrkWKMYnVjkHYibeQ3FKafLd7Hg1zt fl62w9WVRG2q81bIXGuaq4D7bDDqZP7BkrVfYd8o3lBuPDAjaxGV8a+YOrNd0ZjbY7QDGX qQ+XNvYpJEV4L1oKqaXNUjWE1xHlx9WEgqRsWJcKhi0IaSZ07VD6W8liuRbfHiaCJIPR8+ 7/w2bTvYuLFcEhMiojpMqSYawkfH+87XUaVvOTOsNTU4S7txJEHQbpDDwYR+jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BuQysG7P; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671054740; a=rsa-sha256; cv=none; b=iwfnBxGO33NoYVRYpkwAmZO9W8vUcFTQ1gqbiqPesdohwm7FSreUqIZ2WOLa0BQuRt87Wl rqbWLDD2fu57scJDd4jr5jS5ZxlrfgTQw6I/Fct0DwhX0fn7WNlXyOB1ayM9pSp2cRk+xE rQPBzb6N/Xwy2HsOV5DrfvhMgKYwXYVGvImy7+5lvKfbu44IimqOFYMKgIq4zwbvpzoMQV /HLCrLKSjSTutGNop/+ft9O+uRfKNI+rT5AZz1+kAxLVivTR2QgHjpZqb5FkjnvStGDM/R uJQ6XjdeeT786EBMNSfyFrHuUVJpdQq8oYRreK6Yaal5uqlxMyiZ/3rwWdDfpg== X-Migadu-Spam-Score: -5.95 X-Spam-Score: -5.95 X-Migadu-Queue-Id: DF4482486A X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BuQysG7P; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: A7BnklNIWohH --000000000000ea7a6505efd0bd81 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 14, 2022, 4:44 PM Johan Bolmsj=C3=B6 wrote: > ** Description > > The caption "Caption 1" is not exported by ox-html in the following > source block. > > #+caption: Caption 1 > #+begin_src > foo bar baz > #+end_src > The begin_src block always requires a "language" as far as I know. If you don't want to specify a language, you can use #+begin_example instead. You can even do "#+begin_src text". It's a different issue as to why you are seeing a different behavior between the two exporters. > --000000000000ea7a6505efd0bd81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 14, 2022, 4:44 PM Johan Bolmsj=C3=B6 <org-mode@johan.bitmaster.se>= wrote:
** Description

The caption "Caption 1" is not exported by ox-html in the followi= ng
source block.

#+caption: Caption 1
#+begin_src
foo bar baz
#+end_src

The begin_src block always requires a "language" as far= as I know. If you don't want to specify a language, you can use #+begi= n_example instead.=C2=A0

You can even do "#+begin_src text".

<= /div>
It's a different issue as to why you are seeing = a different behavior between the two exporters.=C2=A0
--000000000000ea7a6505efd0bd81--