unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Edit jsp with tag library
@ 2003-12-13  8:31 Steven Woody
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Woody @ 2003-12-13  8:31 UTC (permalink / raw)



I've configured Emacs to edit/read jsp using psgml+html-mode+multi-mode.
For normal jsp files, it seems working fine (do a correct indentation
for me). But when I edit/read jsp with tag library, the indentation
simply broke. for example, a jsp file with taglib <html:errors> should
indented as below,

  <html>
    <html:errors>
    <body>
      <h1> test </h1>
    </body>
  </html>

but, psgml+html-mode+multi-mode wrongly think the <html:error> need a
</html> or </html:errors> as closure. so it indent the above jsp this
way,

  <html>
    <html:errors>
      <body>
        <h1> test </h1>
      </body>
    </html>

this is not what I expected.

Is there a way to fix it?

-- 
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former. -- Albert Einstein

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Edit jsp with tag library
@ 2003-12-28 12:36 Martin Schwamberger
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Schwamberger @ 2003-12-28 12:36 UTC (permalink / raw)


> I've configured Emacs to edit/read jsp using psgml+html-mode+multi-mode.
> For normal jsp files, it seems working fine (do a correct indentation
> for me). But when I edit/read jsp with tag library, the indentation
> simply broke. for example, a jsp file with taglib <html:errors> should
> indented as below,
> 
>   <html>
>     <html:errors>
>     <body>
>       <h1> test </h1>
>     </body>
>   </html>
> 
> but, psgml+html-mode+multi-mode wrongly think the <html:error> need a
> </html> or </html:errors> as closure. so it indent the above jsp this
> way,
> 
>   <html>
>     <html:errors>
>       <body>
>         <h1> test </h1>
>       </body>
>     </html>
> 
> this is not what I expected.
> 
> Is there a way to fix it?

Try <html:errors/>

- Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-28 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-28 12:36 Edit jsp with tag library Martin Schwamberger
  -- strict thread matches above, loose matches on Subject: below --
2003-12-13  8:31 Steven Woody

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).