emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: john muhl <jm@pub.pink>
To: emacs-orgmode@gnu.org
Subject: [BUG] Stray divs in HTML export [9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)]
Date: Tue, 19 Mar 2024 11:10:37 -0500	[thread overview]
Message-ID: <87ttl2kxs2.fsf@pub.pink> (raw)

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

The closing <div>s inside HTML comment blocks appear outside the
comment which makes the exported HTML invalid. For example:

  #+title: Stray div demo

  Hello.

  #+html: <!--

  * Heading
  ** Subheading

  #+html: -->

  Goodbye.

Produces this HTML (cleaned up to make it easier to read, see
attached for original files):

  <p>Hello.</p>
  <!--
  <div>
  <h2>Heading</h2>
  <div>
  </div>
  <div>
  <h3>Subheading</h3>
  <div>
  -->
  <p>Goodbye.</p>
  </div>
  </div>
  </div>


Emacs  : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0)
 of 2024-03-08
Package: Org mode version 9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)


[-- Attachment #2: org-html-export-bug.org --]
[-- Type: application/vnd.lotus-organizer, Size: 94 bytes --]

[-- Attachment #3: org-html-export-bug.html --]
[-- Type: text/html, Size: 681 bytes --]

             reply	other threads:[~2024-03-22 10:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 16:10 john muhl [this message]
2024-03-22 12:49 ` [BUG] Stray divs in HTML export [9.6.15 (release_9.6.15 @ /home/jm/.local/share/emacs/30.0.50/lisp/org/)] Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttl2kxs2.fsf@pub.pink \
    --to=jm@pub.pink \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).