Re: preventing line splitting in .lyx files (not the output)

2008-01-19 Thread Alexis Huxley
 And, by the way, if you get this sorted out, it'd be great material for 
 the wiki.

To make link for news-reading people to the web, I did this; see 
http://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords.

The fix comes in two parts: a SVN hook to prevent committing .lyx 
files with split keyword lines, and command-line perl script to
fix files with split keyword lines. 

Alexis



Re: preventing line splitting in .lyx files (not the output)

2008-01-19 Thread Alexis Huxley
 And, by the way, if you get this sorted out, it'd be great material for 
 the wiki.

To make link for news-reading people to the web, I did this; see 
http://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords.

The fix comes in two parts: a SVN hook to prevent committing .lyx 
files with split keyword lines, and command-line perl script to
fix files with split keyword lines. 

Alexis



Re: preventing line splitting in .lyx files (not the output)

2008-01-19 Thread Alexis Huxley
> And, by the way, if you get this sorted out, it'd be great material for 
> the wiki.

To make link for news-reading people to the web, I did this; see 
http://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords.

The fix comes in two parts: a SVN hook to prevent committing .lyx 
files with split keyword lines, and command-line perl script to
fix files with split keyword lines. 

Alexis



Re: preventing line splitting in .lyx files (not the output)

2008-01-14 Thread rgheck

Alexis Huxley wrote:

Hi, I'm using Subversion to embed various info about released versions
of a document I've written inside the document itself. The .lyx format
being text, this works *almost* fine.

For example I have a note in the document containing:

$LastChangedRevision: 2791 $

and this is correctly updated when I check out the document. 


The problem is that I also have the following in the document:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $

and this does not work. 


The reason it does not work is that in the .lyx *source* file the line
is split, so svn fails to recognise it as text that it should update.

The .lyx file contains:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx
	 $ 


(Just in case one our newsreads reformats that: the last '$' is on
the next line indented by one space.)

With LyX the line appears as a single line. In the output it does
not appear at all (because it's in a note). But in the source it is
being split over two lines.

If I edit the source and put it all on one line, then the next time
I save, it is split again.

Is there any way to prevent this? 

  
Not that I know. The LyX-file output routines wrap the lines, so that 
they can be read reasonably in a text editor. This would involve a 
change to the source.


That said: Does there have to be a space before the final $?

If so, here's what I'd do: Write a teeny filter that will fix this in 
the LyX file before Subversion sees it.


And, by the way, if you get this sorted out, it'd be great material for 
the wiki.


Richard



Re: preventing line splitting in .lyx files (not the output)

2008-01-14 Thread rgheck

Alexis Huxley wrote:

Hi, I'm using Subversion to embed various info about released versions
of a document I've written inside the document itself. The .lyx format
being text, this works *almost* fine.

For example I have a note in the document containing:

$LastChangedRevision: 2791 $

and this is correctly updated when I check out the document. 


The problem is that I also have the following in the document:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $

and this does not work. 


The reason it does not work is that in the .lyx *source* file the line
is split, so svn fails to recognise it as text that it should update.

The .lyx file contains:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx
	 $ 


(Just in case one our newsreads reformats that: the last '$' is on
the next line indented by one space.)

With LyX the line appears as a single line. In the output it does
not appear at all (because it's in a note). But in the source it is
being split over two lines.

If I edit the source and put it all on one line, then the next time
I save, it is split again.

Is there any way to prevent this? 

  
Not that I know. The LyX-file output routines wrap the lines, so that 
they can be read reasonably in a text editor. This would involve a 
change to the source.


That said: Does there have to be a space before the final $?

If so, here's what I'd do: Write a teeny filter that will fix this in 
the LyX file before Subversion sees it.


And, by the way, if you get this sorted out, it'd be great material for 
the wiki.


Richard



Re: preventing line splitting in .lyx files (not the output)

2008-01-14 Thread rgheck

Alexis Huxley wrote:

Hi, I'm using Subversion to embed various info about released versions
of a document I've written inside the document itself. The .lyx format
being text, this works *almost* fine.

For example I have a note in the document containing:

$LastChangedRevision: 2791 $

and this is correctly updated when I check out the document. 


The problem is that I also have the following in the document:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $

and this does not work. 


The reason it does not work is that in the .lyx *source* file the line
is split, so svn fails to recognise it as text that it should update.

The .lyx file contains:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx
	 $ 


(Just in case one our newsreads reformats that: the last '$' is on
the next line indented by one space.)

With LyX the line appears as a single line. In the output it does
not appear at all (because it's in a note). But in the source it is
being split over two lines.

If I edit the source and put it all on one line, then the next time
I save, it is split again.

Is there any way to prevent this? 

  
Not that I know. The LyX-file output routines wrap the lines, so that 
they can be read reasonably in a text editor. This would involve a 
change to the source.


That said: Does there have to be a space before the final $?

If so, here's what I'd do: Write a teeny filter that will fix this in 
the LyX file before Subversion sees it.


And, by the way, if you get this sorted out, it'd be great material for 
the wiki.


Richard



preventing line splitting in .lyx files (not the output)

2008-01-13 Thread Alexis Huxley
Hi, I'm using Subversion to embed various info about released versions
of a document I've written inside the document itself. The .lyx format
being text, this works *almost* fine.

For example I have a note in the document containing:

$LastChangedRevision: 2791 $

and this is correctly updated when I check out the document. 

The problem is that I also have the following in the document:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $

and this does not work. 

The reason it does not work is that in the .lyx *source* file the line
is split, so svn fails to recognise it as text that it should update.

The .lyx file contains:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx
 $ 

(Just in case one our newsreads reformats that: the last '$' is on
the next line indented by one space.)

With LyX the line appears as a single line. In the output it does
not appear at all (because it's in a note). But in the source it is
being split over two lines.

If I edit the source and put it all on one line, then the next time
I save, it is split again.

Is there any way to prevent this? 

For info, I'm using LyX 1.5.2, from Debian lenny/testing.

Thanks!

Alexis



preventing line splitting in .lyx files (not the output)

2008-01-13 Thread Alexis Huxley
Hi, I'm using Subversion to embed various info about released versions
of a document I've written inside the document itself. The .lyx format
being text, this works *almost* fine.

For example I have a note in the document containing:

$LastChangedRevision: 2791 $

and this is correctly updated when I check out the document. 

The problem is that I also have the following in the document:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $

and this does not work. 

The reason it does not work is that in the .lyx *source* file the line
is split, so svn fails to recognise it as text that it should update.

The .lyx file contains:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx
 $ 

(Just in case one our newsreads reformats that: the last '$' is on
the next line indented by one space.)

With LyX the line appears as a single line. In the output it does
not appear at all (because it's in a note). But in the source it is
being split over two lines.

If I edit the source and put it all on one line, then the next time
I save, it is split again.

Is there any way to prevent this? 

For info, I'm using LyX 1.5.2, from Debian lenny/testing.

Thanks!

Alexis



preventing line splitting in .lyx files (not the output)

2008-01-13 Thread Alexis Huxley
Hi, I'm using Subversion to embed various info about released versions
of a document I've written inside the document itself. The .lyx format
being text, this works *almost* fine.

For example I have a note in the document containing:

$LastChangedRevision: 2791 $

and this is correctly updated when I check out the document. 

The problem is that I also have the following in the document:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $

and this does not work. 

The reason it does not work is that in the .lyx *source* file the line
is split, so svn fails to recognise it as text that it should update.

The .lyx file contains:

$HeadURL: 
svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx
 $ 

(Just in case one our newsreads reformats that: the last '$' is on
the next line indented by one space.)

With LyX the line appears as a single line. In the output it does
not appear at all (because it's in a note). But in the source it is
being split over two lines.

If I edit the source and put it all on one line, then the next time
I save, it is split again.

Is there any way to prevent this? 

For info, I'm using LyX 1.5.2, from Debian lenny/testing.

Thanks!

Alexis