emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: "[emacs-orgmode]" <emacs-orgmode@gnu.org>
Subject: Re: Valid XHTML
Date: Mon, 27 Oct 2008 01:55:03 +0100	[thread overview]
Message-ID: <49051167.2080900@gmx.de> (raw)
In-Reply-To: <4904E4C6.4080404@gmx.de>

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

Hi,



1.) ERR

    SSTOOOP!!!

   Sebastian Rose wrote:
> <a href="x.php%3Fa%3Db%26c%3Dd">x.php?a=b&amp;c=d</a>
>                   ^                        ^
> urlencoded--------'              entities--'


   Sorry, that's bullsh... This is one of the errors, that goes away, if


   <a href="x.php?a=b&c=d">x.php?a=b&amp;c=d</a>
                                    ^
                          entities--'



2.) Fix for 'no <pre> in <p> (XHTML)':

   The appended patch fixes this. Don't know if it is correct, but I
   tested repeatedly with various files and it seems OK. No empty <p>
   elements remain.




Regards,

    Sebastian

[-- Attachment #2: patch-no-pre-in-p.patch --]
[-- Type: text/x-patch, Size: 1003 bytes --]

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 4153554..8762843 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -3102,6 +3102,7 @@ lang=\"%s\" xml:lang=\"%s\">
 		     (string-match "^[ \t]*:\\(.*\\)" line))
 	    (when (not infixed)
 	      (setq infixed t)
+          (org-close-par-maybe)
 	      (insert "<pre class=\"example\">\n"))
 	    (insert (org-html-protect (match-string 1 line)) "\n")
 	    (when (or (not lines)
@@ -3339,6 +3340,7 @@ lang=\"%s\" xml:lang=\"%s\">
 				  head-count)
 	    ;; QUOTES
 	    (when (string-match quote-re line)
+          (org-close-par-maybe)
 	      (insert "<pre>")
 	      (setq inquote t)))

@@ -3449,7 +3451,7 @@ lang=\"%s\" xml:lang=\"%s\">
 	    (insert line "\n")))))

       ;; Properly close all local lists and other lists
-      (when inquote (insert "</pre>\n"))
+      (when inquote (insert "</pre>\n") (org-open-par))
       (when in-local-list
 	;; Close any local lists before inserting a new header line
 	(while local-list-type

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2008-10-31 23:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-31 19:54 Valid XHTML Sebastian Rose
2008-10-26 21:44 ` Sebastian Rose
2008-10-26 22:04   ` Sebastian Rose
2008-10-26 22:12   ` Sebastian Rose
2008-10-27  1:25     ` Sebastian Rose
2008-11-02  6:42     ` Carsten Dominik
2008-10-27  0:55   ` Sebastian Rose [this message]
2008-10-27  2:37     ` Sebastian Rose
2008-11-02  6:40     ` Carsten Dominik
2008-10-27  1:45   ` Sebastian Rose
2008-11-02  6:43     ` Carsten Dominik
2008-11-02  6:50 ` Carsten Dominik
2008-11-03 11:08 ` Carsten Dominik

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=49051167.2080900@gmx.de \
    --to=sebastian_rose@gmx.de \
    --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).