From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QBoZNwZCgGeiUgEA62LTzQ:P1 (envelope-from ) for ; Thu, 09 Jan 2025 21:39:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QBoZNwZCgGeiUgEA62LTzQ (envelope-from ) for ; Thu, 09 Jan 2025 22:39:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ujoe5al3; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736458758; 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=H64oyrIWnklZXpinXXU7vdukSDIT2HNMv8Pgoo7qvPU=; b=PwG3YP92TZB1UVkp9kg4nDqF2JqzPzeCuEcNJ0HuuYRskS5CS9YBDorPoUYr/3hIb+mNDl k5507DlDV19SpeTyxpS24v+FFOhS7fK5123UOsllp2jXKcAR6q/DyUUg4fsUthuYNHo8v4 9hw+SVYQ4dj3ps54wkSJ2VFGoe+NdlD6PixDi1ZH9RurTL1YN9tyqcmJVGDcyqli9J2d2W K7GbYXH3/fmMVF6ik0lpVubUfTRQaIC/DxhJkaqN6WjuBj53E30GLD1bYZofg7hGw1tJJh gjgCqtM3nDoEZkeq/vanPWTwVmz8xUM0zkWxnajY/gtPYktX/FUi6WWVx1V0Nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ujoe5al3; 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=1736458758; a=rsa-sha256; cv=none; b=aIhRA6nc7iaQhiC8hyw84YH+qxxBwJ2qTrFkkSbWkqYTScLjtW3tb5W51B7WbGcRia/8Gv 9ZnbdUMzvDeo8sqjZq0919p/nYGyqlB1N+WU38jUJMoH7oRvF3YG5YI/qKWdsopmQjnrxb Xb0zPdPNux+ygBlrzGKKvX4Ae2rtp9MgVyDHPEF5dtnHMDj3jjNgLHJG9dH2fsRlmu6PQQ 7/TfFbVHfZ+LKG63kZvSInJYzIT/+u3SkmJQeddwMQ5hfre76wUGvJ+7GATnQwpXMM8RdE zrel0XfL/UuqVB8EFSRREUYdEYUJVFaNVI2YX27PqX5ify5blxxjo21z/c14Lw== 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 C5EA2883AC for ; Thu, 09 Jan 2025 22:39:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tW0Eh-0006Vc-Ja; Thu, 09 Jan 2025 16:38:39 -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 1tW0Ee-0006UZ-D4 for emacs-orgmode@gnu.org; Thu, 09 Jan 2025 16:38:36 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tW0Ea-0006Kn-BM for emacs-orgmode@gnu.org; Thu, 09 Jan 2025 16:38:34 -0500 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-216426b0865so23223495ad.0 for ; Thu, 09 Jan 2025 13:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736458706; x=1737063506; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=H64oyrIWnklZXpinXXU7vdukSDIT2HNMv8Pgoo7qvPU=; b=Ujoe5al3Wsh/BMVx4uoD+ENpV/e5HGTPo6WG6A8L/a31byeNUvqvY7Y1dcjTtX6M9o L4eNLMnvCg6LWqNsFu6EbmFOCPdYhpMS8K/IMwDXpu5ImsPgLqdQ/SblonPPDQr8eW3H c+fjaNVlI1ZgednWQZs+VVjdIgq/0DOIpBel4u3vI4o6Da63hybdqt2KOn0lpwKKkQlc Ej9rDYJe5AcqW43rdhSsq5z3hIC1EtbyfvGdPZiDGqpmRzJWROeGfpPua41Z7YgwpO69 TeRxpnlFtv8ogrWK0OzvUDer/KiqnqOz4qRq09jNF+mox+5bZ8kkfnTf7WeI11/rQiZr MsIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736458706; x=1737063506; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=H64oyrIWnklZXpinXXU7vdukSDIT2HNMv8Pgoo7qvPU=; b=kBHupDeURjy2Mfbx2+JMMeAeHNVpuA9E5tD0vZaLOL5qLeEwHzCtqJz2hP1VcEQ493 NiKiWTdjsLb/Shv6kL9mAlOaNFmFDFpbrmVKjnMJ9NvOykdyGjaRXshUlKWirEFWypdi izVoU3mMm3M+XagRxRUV74qU1kJxZws2K9Nh5ziFYd/Fb7I5eYcsyIM/FFcn1L6Oh9GF lGE/MHZUvRutyuQgO9jhY2CdMkYpnTYdmCWHgd9tCowT/E5rS6yFnhxTx+m1hWUYl5ve dS2aOgQqIQfEGUVVlybUfMionmI/Mqj/7X5mDReE2YMvkGVA6/vuDrRyoqsdzhL69B2/ N3Hg== X-Gm-Message-State: AOJu0YwS54JLhVa9BCaa6gfuZxPIup0XdvXndEeQmP9yLhJ69e6Fektc iyqizAjhtvDs2ye44YUP00gPalTxWh3h3vh1GZZxFh2s4eLbLN5rktsKyw== X-Gm-Gg: ASbGncvMvgQTKi/omMpxDzLWx7JKz5J0c84vYQmZI4mw+GOcqlo6svyHckG5CvZaDfu 7pd8IEwd4vJfHNexUtFLcdA1XyFBtT3Lyhe9dLEgxxmrKr1tVcpvzxqWLlMkuFy7AXKpO4guqGT elzgoReMMESWIQBRjaJv/aACO+hKJUfWcEPX2BcXCUxIm0ozeXPQSiZ5xYi7CdVamu51TtJQo5a 9uSCF2QEunFmQ0VGgWqHlB9Ks3kkUP4Gni/HwC4SJcLXXknHOnFFKWxHACTiYfj X-Google-Smtp-Source: AGHT+IHZfO+tGJP7hQU1Wavd4JYzHfZao049VnjIPhKMCqHNwycw19Nd5rcySl0RZqOeOOsECNZt6g== X-Received: by 2002:a17:902:da8c:b0:216:53fa:634f with SMTP id d9443c01a7336-21a84009ad0mr129469235ad.48.1736458706517; Thu, 09 Jan 2025 13:38:26 -0800 (PST) Received: from localhost ([169.231.44.15]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21a9f10de57sm2480535ad.22.2025.01.09.13.38.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2025 13:38:25 -0800 (PST) From: Karthik Chikmagalur To: emacs-orgmode@gnu.org Subject: [BUG] Edge case for preview image alignment Date: Thu, 09 Jan 2025 13:38:25 -0800 Message-ID: <87ed1br7la.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x62c.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, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -5.53 X-Spam-Score: -5.53 X-Migadu-Queue-Id: C5EA2883AC X-TUID: wjshwjxtuG0J Currently the value of `org-image-align' or of the `:align' attr_* keyword is respected when previewing images in the following two situations: 1. Image link in its own paragraph: #+attr_org: :align center [[file:/path/to/image.png]] 2. Image link at the end of a paragraph, on its own line: Some text in a paragraph #+attr_org: :align center [[file:/path/to/image.png]] OR Some text in a paragraph [[file:/path/to/image.png]] But it is ignored when the 3. image link is on its own line "inside" a paragraph: Some text in a paragraph #+attr_org: :align center [[file:/path/to/image.png]] followed by more text in the paragraph. OR Some text in a paragraph [[file:/path/to/image.png]] followed by more text in the paragraph. ------- In contrast, the value of `org-image-max-width', `org-image-actual-width' (and the attr_* :width attribute) are respected in all three cases. Should we support image alignment in case 3? The only situation in which I can see this being undesirable is when you have hard-wrapped/filled lines and the image link coincidentally ends up on its own line. In this case it doesn't make sense for the image preview to respect `org-image-align'. There might be other syntactical reasons why supporting case 3 doesn't make sense, so I am asking here. Karthik