emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jonathan BISSON <bissonjonathan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Avoiding div from special blocks to be in <p>…
Date: Sun, 04 Dec 2011 17:01:41 +0100	[thread overview]
Message-ID: <4EDB9965.9040400@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 269 bytes --]

Hi,

I just uncommented a line in org-special-blocks.el that made div special
blocks (like #+begin_foo) in html export to be between <p>…</p>…
It seems to work well like this (and now the produced documents are W3C
valid).

Any clue on why it was commented ?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: no_divs_in_p.patch --]
[-- Type: text/x-patch; name="no_divs_in_p.patch", Size: 622 bytes --]

diff --git a/lisp/org-special-blocks.el b/lisp/org-special-blocks.el
index 2da57f0..d55e255 100644
--- a/lisp/org-special-blocks.el
+++ b/lisp/org-special-blocks.el
@@ -81,7 +81,7 @@ seen.  This is run after a few special cases are taken care of."
   "Converts the special cookies into div blocks."
   ;; Uses the dynamically-bound variable `line'.
   (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line)
-;    (org-close-par-maybe)
+    (org-close-par-maybe)
     (message "%s" (match-string 1))
     (if (equal (match-string 2 line) "START")
 	(insert "<div class=\"" (match-string 1 line) "\">\n")

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

             reply	other threads:[~2011-12-04 16:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-04 16:01 Jonathan BISSON [this message]
2011-12-04 18:57 ` Avoiding div from special blocks to be in <p>… Christian Moe
2011-12-04 19:41   ` Jonathan BISSON
2011-12-11 13:11   ` Bastien
2011-12-11 13:38     ` Christian Moe

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=4EDB9965.9040400@gmail.com \
    --to=bissonjonathan@gmail.com \
    --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).