Hi,
please apply the following patch that solves a bug in linuxdoc documents
where if the first element in a paragraph was not the toc the paragraph was
ignored, this is wrong. My mistake :-)
This patch also corrects a spell error since that is the mood today ;-)
Jos�
--
Jos� Ab�lio de Oliveira Matos
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.............................
--- buffer.C.orig Wed Jan 20 17:28:49 1999
+++ buffer.C Wed Jan 20 17:31:03 1999
@@ -2137,18 +2137,18 @@
par->AutoDeleteInsets();
- /* treat <toc> as a special case for compatibilty with old
code */
+ /* treat <toc> as a special case for compatibility with old
+code */
if (par->GetChar(0) == LYX_META_INSET) {
Inset *inset = par->GetInset(0);
char lyx_code = inset->LyxCode();
if (lyx_code ==Inset::TOC_CODE){
LString temp= "toc";
sgmlOpenTag(file,depth,temp);
- }
- par = par->next;
- linuxDocHandleFootnote(file,par);
- continue;
+ par = par->next;
+ linuxDocHandleFootnote(file,par);
+ continue;
+ }
}
/* environment tag closing */