<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/9/6 Mark Morgan Lloyd <span dir="ltr"><<a href="mailto:markMLl.fpc-pascal@telemetry.co.uk" target="_blank">markMLl.fpc-pascal@telemetry.co.uk</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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?<br>


<br>
One possibility is obviously to break after the rightmost space, but is it valid to break after e.g. . (if not followed by a digit), ^ and possibly others?<br>
<br>
Syntax errors are acceptable. Truncation isn't.<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote></div><br></div><div class="gmail_extra">Yes.<br></div><div class="gmail_extra"><br>You could also split after ] and := and ;<br>

<br></div><div class="gmail_extra">More tricky, you could recognize < < <> <= and <=<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">But your splitter must be able to know when it is inside a string (no splitting) and outside. Which means your splitter should be able to recognize the right quote too and split after it if suitable.<br clear="all">

</div><div class="gmail_extra"><br>-- <br>Frederic Da Vitoria<br>(davitof)<br><br>Membre de l'April - « promouvoir et défendre le logiciel libre » - <a href="http://www.april.org" target="_blank">http://www.april.org</a><br>


</div></div>