From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 oMw1Jn64tmObSgEAbAwnHQ (envelope-from ) for ; Thu, 05 Jan 2023 12:46:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yFlOJn64tmNxQgEA9RJhRA (envelope-from ) for ; Thu, 05 Jan 2023 12:46:06 +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 5DA42248F8 for ; Thu, 5 Jan 2023 12:46:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDOgI-0001XN-AC; Thu, 05 Jan 2023 06:45:10 -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 1pD6Vq-0007pT-8o for emacs-orgmode@gnu.org; Wed, 04 Jan 2023 11:21:10 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pD6Vo-0000c7-2D for emacs-orgmode@gnu.org; Wed, 04 Jan 2023 11:21:10 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8755940E12 for ; Wed, 4 Jan 2023 17:21:03 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XtXoyE7oytyp for ; Wed, 4 Jan 2023 17:21:02 +0100 (CET) From: contrapunctus DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1672849262; bh=Gc+ln9S2Xom0tIrEPw2ZBdGyMGkrCjnMe+0QkjnteGs=; h=From:To:Subject:Date; b=TlaXhYSsMkl8W5SVQvKrDbtfL7P3e5JrbU+vU1AxaJxqc8ZAMwxJOfRQF7DB/zbLt X2+6pon+3c87yXHHqNdkka6L0Lp13gaKJub9Gz9CU2lQVKv+BQfBdQPuiyP8+Nq4cc JzVpAp9JUwObN7U2VMTbFRhFhXPjIhYjTxIeK95YbQhsVlTFz4KNx1HqOBHKAlNY/G XwKAVicMxm97KntLTsgswFtgmS97ODzGQpJK/5M+PRYls7bewUD+tRFDVcd8Oy3RUx QGJ+1CQmbEz6rbUzthNuzSswhEXl/yawxZwH3RrklvAtjVAMOEfvAuSzzI/yMhvG22 MHUm5Ikr/GgZg== To: emacs-orgmode@gnu.org Subject: [BUG] ox-html: incorrect figure numbers [9.6 ( @ /home/contrapunctus/.emacs.d/elpa/org-9.6/)] Date: Wed, 04 Jan 2023 21:50:56 +0530 Message-ID: <87y1qitgnr.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=contrapunctus@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 05 Jan 2023 06:45:03 -0500 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=1672919166; 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=3QJ2K06DDNFEjdesskbxwnO40v1HQbvyKtRIKrYpeQM=; b=H+6Cj+svTryPV7KkUVOgPqb90Icns8Jx5I3SkCq2kHaORSm785r90XRMhWe/yVTBbZpoAl AC8KwDamYswG037ifNJvxX7rn9IVAO5ZTQd/5W/aiLhq63SHEKfNzMPXtYpRz2Hdw5u8jm No5F/owRarZst3LM6ynQQzkcG/Ut+2zJc0wwCkjwSGxKkeUjl90AFtJQrjBSe6dPX1iqPN Yx/L0X4XkXbMSDHaOdjajuvjSBwHdb2eePZDJXX+pPNM7riiSYIg+LmF6AiTH9nhK5zXTs UQpzXl5sig+MKECKNT4+2RYWzLlkdUizfU8B/VkJJO7R53apiDDvRBfN4htSXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=TlaXhYSs; 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=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672919166; a=rsa-sha256; cv=none; b=U/mqaO+67q8AXETVRiIRWQ0bJY7uExYx7ijpZ2BoC5Kt/8k1quJ77TZqqdiqtHVxQN0Lmv OqAbBZfNxvAnxP95O0yYOvEUN72XtZ2o5fF7Cpx2shvZQct310SOopDPWA5xkm+x1wdBrs LvYJpRmQ+KpTEL51H6ZuemG9OkFtMO46AilnkuTYIH2lD2tOBjBgUrrgT1gaN0qyfXRfvf djhQaUfJ91PntrN6vO54unFlc6qL4o+Xdg44SA/rBcFy1qK+LN68IfNRyE9gT73f+jdu+b y1cDYEMeWiByZ/8iVgOPjaAm0r8THHOgk3zvP/yo+pzeZGBFuWD8YS/qfxFOKQ== X-Spam-Score: -4.71 X-Migadu-Queue-Id: 5DA42248F8 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=TlaXhYSs; 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=reject) header.from=disroot.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.71 X-TUID: rcDOUATgOTze Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I have the following test file - ```org #+CAPTION: caption 1 [[file:img/orig/img1.jpg][file:img/small/img1.jpg]] #+CAPTION: caption 2 [[file:img/orig/img2.jpg][file:img/small/img2.jpg]] #+CAPTION: caption 3 [[file:img/orig/img3.jpg][file:img/small/img3.jpg]] #+CAPTION: caption 4 [[file:img/orig/img4.jpg][file:img/small/img4.jpg]] ... ``` With Org v9.5.5, M-x org-html-export-to-html numbers each caption as - Figure 1: caption 1 Figure 2: caption 2 Figure 3: caption 3 Figure 4: caption 4 ... But with Org v9.6, M-x org-html-export-to-html numbers each caption as - Figure 1: caption 1 Figure 2: caption 2 Figure 1: caption 3 Figure 1: caption 4 ... Emacs : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.16.0) of 2022-12-20, modified by Debian Package: Org mode version 9.6 ( @ /home/contrapunctus/.emacs.d/elpa/org-9.6/)