Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Frederic Da Vitoria
2013/9/6 Mark Morgan Lloyd > I'm sure there isn't a single "right" answer to this question, but if > transferring Pascal source to a system that enforces short lines (e.g. 78 > chars + CRLF) what's the best automatic breaking rule? > > One possibility is obviously to break after the rightmost spa

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
Howard Page-Clark wrote: On 06/09/2013 14:10, Mark Morgan Lloyd wrote: I'm sure there isn't a single "right" answer to this question, but if transferring Pascal source to a system that enforces short lines (e.g. 78 chars + CRLF) what's the best automatic breaking rule? One possibility is obviou

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
Bernd Oppolzer wrote: Am 06.09.2013 18:16, schrieb Bernd Oppolzer: To keep the syntax correct, you can break after every symbol, that is: not inside identifiers, not inside numbers (including floating point constants) not inside quoted strings but anywhere else I am using a Pascal pretty prin

Re: [fpc-pascal] Re: Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
leledumbo wrote: Use JEDI Code Formatter with max line length 78 and let the magic works... Worth remembering, thanks :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Howard Page-Clark
On 06/09/2013 14:10, Mark Morgan Lloyd wrote: I'm sure there isn't a single "right" answer to this question, but if transferring Pascal source to a system that enforces short lines (e.g. 78 chars + CRLF) what's the best automatic breaking rule? One possibility is obviously to break after the rig

[fpc-pascal] Re: Breaking Pascal source lines

2013-09-06 Thread leledumbo
Use JEDI Code Formatter with max line length 78 and let the magic works... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Breaking-Pascal-source-lines-tp5716333p5716338.html Sent from the Free Pascal - General mailing list archive at Nabble.com. __

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Bernd Oppolzer
Am 06.09.2013 18:16, schrieb Bernd Oppolzer: To keep the syntax correct, you can break after every symbol, that is: not inside identifiers, not inside numbers (including floating point constants) not inside quoted strings but anywhere else I am using a Pascal pretty print program, that knows a

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Bernd Oppolzer
Am 06.09.2013 15:10, schrieb Mark Morgan Lloyd: I'm sure there isn't a single "right" answer to this question, but if transferring Pascal source to a system that enforces short lines (e.g. 78 chars + CRLF) what's the best automatic breaking rule? One possibility is obviously to break after the

[fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
I'm sure there isn't a single "right" answer to this question, but if transferring Pascal source to a system that enforces short lines (e.g. 78 chars + CRLF) what's the best automatic breaking rule? One possibility is obviously to break after the rightmost space, but is it valid to break after