Stefan Monnier wrote:
"Lennart" == Lennart Borgman (gmail) <[EMAIL PROTECTED]> writes:

Stefan Monnier wrote:
The attached file is valid XHTML 1.1 but indents badly because of the < inte
<?php ... ?> part. I paste it here for simplicity too:
Hmm... does the patch below fix it for you?
If you put a "<?" inside your PHP code, it seems it would still be valid
XML, but indentation will probably get confused.

It fixes the last two lines (</body> and </html>), but not the </div> line.

The additional patch below should fix that, provided Emacs is in XHTML mode
(rather than HTML mode).  If I understand the HTML docs properly your
example code is not valid in HTML because the < is not allowed inside
<?php ...>.


Thanks, indeed that did the trick.

I guess you with XHTML mode mean html-mode + XHTML DTD? How do I get html-mode to follow the XHTML DTD? In the circumstances I am going to use it sometimes there are no proper header part with DTD spec.


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to