[Tkabber-dev] r778 - in trunk/tkabber-plugins: . latex

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sat Nov 4 00:27:56 MSK 2006


Author: sergei
Date: 2006-11-04 00:27:53 +0300 (Sat, 04 Nov 2006)
New Revision: 778

Modified:
   trunk/tkabber-plugins/ChangeLog
   trunk/tkabber-plugins/latex/latex.tcl
Log:
	* latex/latex.tcl: Updated to match current emoticons engine.
	  Changed LaTeX expression regexp to allow spaces in it.


Modified: trunk/tkabber-plugins/ChangeLog
===================================================================
--- trunk/tkabber-plugins/ChangeLog	2006-11-03 21:25:32 UTC (rev 777)
+++ trunk/tkabber-plugins/ChangeLog	2006-11-03 21:27:53 UTC (rev 778)
@@ -1,3 +1,8 @@
+2006-11-04  Sergei Golovan  <sgolovan at nes.ru>
+
+	* latex/latex.tcl: Updated to match current emoticons engine.
+	  Changed LaTeX expression regexp to allow spaces in it.
+
 2006-10-22  Sergei Golovan  <sgolovan at nes.ru>
 
 	* whiteboard/svgrender.tcl: Check color existence before rendering

Modified: trunk/tkabber-plugins/latex/latex.tcl
===================================================================
--- trunk/tkabber-plugins/latex/latex.tcl	2006-11-03 21:25:32 UTC (rev 777)
+++ trunk/tkabber-plugins/latex/latex.tcl	2006-11-03 21:27:53 UTC (rev 778)
@@ -55,7 +55,7 @@
 
     init_colors $chatid
 
-    foreach {str formula} [regexp -all -inline {\$\$([^$\s]+)\$\$} $body] {
+    foreach {str formula} [regexp -all -inline {\$\$([^$]+)\$\$} $body] {
 	if {[lsearch -exact [image names] latex/$str] >= 0} continue
 
 	set bl 0
@@ -72,7 +72,7 @@
 	    continue
 	}
 
-	emoteicons::add $str latex/$str
+	plugins::emoticons::add $str latex/$str
     }
 }
 



More information about the Tkabber-dev mailing list