<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><div style="margin:0px;padding:0px 0px 20px;width:820px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><div><div id="m_8857601885506824969gmail-:1ce" style="margin:8px 0px 0px;padding:0px"><div id="m_8857601885506824969gmail-:1cd"><div dir="ltr"><div dir="ltr">I want to replace some end of paragraphs with text and code in a TeXShop source file so that the next lines after a paragraph read:<div>.....</div><div>\stopparagraph</div><div><br></div><div>\startparagraph</div><div>.......<br><div>So far I have the the regex search term  $ and the replacement text</div><div>\n\\stopparagraph</div><div>\n\\startparagraph</div><div><br></div><div>This works but I end up with an unwanted empty line after </div><div>\startparagraph</div><div><br></div><div>Moreover,\n\\startparagraph\r\n<br></div><div>does not seem to be CRLF but adds yet another empty line.</div><div><br></div><div>Is there a way to avoid this unwanted line or perhaps a better way to get what I want?</div></div><div><br></div><div>Any tips or pointers to relevant documentation will be gratefully received.</div><font color="#888888"><div><br></div><div>Alan</div><div><br></div></font></div></div><div></div><div></div></div></div><div></div></div></div></div></div></div>