emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: sebastian_rose@gmx.de
Cc: "[emacs-orgmode]" <emacs-orgmode@gnu.org>
Subject: Re: Valid XHTML
Date: Sun, 2 Nov 2008 07:40:41 +0100	[thread overview]
Message-ID: <4CD60E90-62A8-4F72-A731-2CC106663C0B@uva.nl> (raw)
In-Reply-To: <49051167.2080900@gmx.de>

Applied, thanks.

- Carsten

On Oct 27, 2008, at 1:55 AM, Sebastian Rose wrote:

> 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
> 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
> _______________________________________________
> 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-11-02  6:55 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
2008-10-27  2:37     ` Sebastian Rose
2008-11-02  6:40     ` Carsten Dominik [this message]
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=4CD60E90-62A8-4F72-A731-2CC106663C0B@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastian_rose@gmx.de \
    /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).