Reuben Sumner wrote:
>
> LinuxDoc footnotes seems to be badly broken. I haven't been able to
> make enough sense of the code to fix it.
>
> If I have a paragraph with a footnote in the middle it gets stored as
> paragrah (style LATEX_PARAGRAPH), the footnote and then paragraph
> (style LATEX_PARAGRAPH) again. This is described in the code for
> IsDummy. The code right now processes the first paragraph. Incorrectly
> prints a close of paragraph marker and then processes the footnote.
> The processing of the footnote advances par to the next paragraph which
> "IsDummy" causing an error. Even if I change the code so that it doesn't
> check IsDummy the continuation of the same paragraph will cause another
> <p> to be written incorrectly.
Could you send me an example file, after your description I think that I
know where the error is.
> I just don't understand the current code. Why can't the footnote be
> a paragraph with depth+1?
Because of the present structure of paragraph. The correct solution to
this case, already in 1.1 (I think) is to a have footnote as any other
inset.
> A small side point Buffer::sgml{Open,Close}Tag each define the same
> constant (although you haven't declared it as constant) which starts
> space[0] = " "; Shouldn't it start space[0]="", space[1]=" " and so
> on? Looks kind of unprofessional having a bunch of silly unnecessary
> spaces around.
That has to do with the document structure, the indentation is intended:
<!doctype linuxdoc>
<article>
<blah>
</article>
My main concern with the linuxdoc was to produce legal linuxdoc and I
didn't care about "nice" linuxdoc. Your are welcome to change that, there
are also other problems related with line braking that could be fine-tuned.
> Is there are way to get lyx to print some sort of debug dump of the
> paragraph chain?
No that I'm aware, besides running all the structure.
> Reuben
Jos�
--
Jos� Ab�lio de Oliveira Matos
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First Law of Socio-Genetics:
Celibacy is not hereditary.