<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Замена символа абзаца в строке richtext]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=822&amp;type=atom" />
	<updated>2013-12-09T13:04:46Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=822</id>
		<entry>
			<title type="html"><![CDATA[Замена символа абзаца в строке richtext]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=124049#p124049" />
			<content type="html"><![CDATA[<p>Задача - заменить в richtext поле каждый абзац каким-то символом, например - тегом переноса строки.<br />Вот решение на лотусскрипте:</p><p>Set rtitem =&nbsp; doc.GetFirstItem(&quot;СОДЕРЖАНИЕ_&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sText$ = rtitem.Text<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string1 = Chr(13)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string2 = &quot;&lt;br/&gt;&quot;<br />&nbsp; &nbsp;While Instr(1, sText$, string1) &#039;&nbsp; заменяем абзац на тег.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sText$ = Left(sText$, Instr(1, sText$, string1) - 1) + string2 + Mid(sText$, Instr(1, sText$, string1) + Len(string1))<br />&nbsp; &nbsp; &nbsp;Wend</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2013-12-09T13:04:46Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=124049#p124049</id>
		</entry>
</feed>
