Re: Indentation problem
Eric Richardson <[email protected]>
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Organization | MilagroSoft Inc. |
| Message-ID | <[email protected]> |
Matt Armstrong wrote: > I'm running into an indentation problem with psgml 1.2.5. Interesting. I'm running a version 1.3.0. I looked at SourceForge and found 1.2.5 as the latest. Where did I get 1.3.0? Eric > > The beginning of my document looks like this: > > <?xml version="1.0"?> > <!DOCTYPE wml SYSTEM "/home/maarmstr/dtd/wml13.dtd"> > <wml> > <card title="Compose This"> > <p> > <select> > > PSGML thinks that <select> should begin on the first column. Tracing > through the code I find that sgml-indent-line bails when trying to come > up with an indentation for the <select> tag because sgml-element-data-p > returns true for the <p> element. > > Translation: it seems like PSGML does not want to indent an element if > its enclosing element can contain text (CDATA). This is the case for > the DTD I'm using. > > Is this true of PSGML? > > If so, how do you get reasonable indentation in cases like this? > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf