<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/1281" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-03-16T02:09:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/1281</id>

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-03-16T02:09:00-04:00</updated>

		<published>2002-03-16T02:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5443#p5443</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5443#p5443"/>
		<title type="html"><![CDATA[Stop it starting a new line for every space in a line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5443#p5443"><![CDATA[
gets only returns one line, and then your foreach loop is reading each word in that line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Mar 16, 2002 2:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-15T22:41:00-04:00</updated>

		<published>2002-03-15T22:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5437#p5437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5437#p5437"/>
		<title type="html"><![CDATA[Stop it starting a new line for every space in a line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5437#p5437"><![CDATA[
What can i do to stop it from starting a <br>new line for every space in a line say i was pulling some info from a page and it looked like this:<br><br>  &lt;title&gt;Mining Unstructured Data&lt;/title&gt; <br>  &lt;url&gt;<a href="http://slashdot.org/article.pl?sid=02/03/15/1319233%3C/url" class="postlink">http://slashdot.org/article.pl?sid=02/0 ... 19233&lt;/url</a>&gt; <br>  &lt;time&gt;2002-03-15 23:18:33&lt;/time&gt; <br>  &lt;author&gt;michael&lt;/author&gt; <br><br>it would return it like:<br><br>&lt;title&gt;Mining<br>(BoT) Unstructured<br>(BoT) Data&lt;/title&gt;<br>(BoT) &lt;url&gt;<a href="http://slashdot.org/article.pl?sid=02/03/15/1319233%3C/url" class="postlink">http://slashdot.org/article.pl?sid=02/0 ... 19233&lt;/url</a>&gt;<br>(BoT) &lt;time&gt;2002-03-15<br>(BoT) 23:18:33&lt;/time&gt;<br>(BoT) &lt;author&gt;michael&lt;/author&gt;<br><br>which is starting the lines with spaces on a new line each time.<br><br>so with this script its not returning the title cause its split up and cant find &lt;title&gt; and &lt;/title&gt; on one line for foreach...<br><br>bind pub - !slash slash<br>proc slash {nick host hand chan arg} {<br>  set url "/slashdot.xml"<br>  if {[catch {set sock [socket -async slashdot.org 80]} sockerr]} {<br>  putserv "PRIVMSG $chan :$sockerr"<br>  close $sock<br>  return 0<br>  }<br>  puts $sock "GET $url"<br>  flush $sock<br>  set slash [gets $sock]<br>  close $sock<br>  foreach line $slash {<br>   puts $line<br>   set i [string first "&lt;title&gt;" $line]<br>   if {$i != -1} {<br>   set j [string last "&lt;/title&gt;" $line]<br>   putserv "PRIVMSG $chan :02[string range $line [expr $i + 7] [expr $j - 1]]02" <br>   } else {<br>   set i [string first "&lt;url&gt;" $line]<br>   if {$i != -1} {<br>   set j [string last "&lt;/url&gt;" $line]<br>   putserv "PRIVMSG $chan <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">[string range $line [expr $i + 5] [expr $j - 1]])"<br>}<br>}<br>}<br><br><br>}<p>Statistics: Posted by Guest — Fri Mar 15, 2002 10:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
