Gnus development mailing list
 help / color / mirror / Atom feed
* Small article-unsplit-urls fix
@ 2005-12-01 17:54 Mark Plaksin
  2005-12-01 23:16 ` Mark Plaksin
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Plaksin @ 2005-12-01 17:54 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

article-unsplit-urls (W u from the Summary Buffer) turns this:
http://cnn.com
http://ibm.com

into this:
http://cnn.comhttp://ibm.com

Attached is a small patch to fix this.


[-- Attachment #2: gnus-art.el patch --]
[-- Type: text/plain, Size: 504 bytes --]

--- gnus-art.el	2005-11-28 09:37:06.000000000 -0500
+++ gnus-art.el.new	2005-12-01 12:51:02.000000000 -0500
@@ -2494,7 +2494,9 @@
       (goto-char (point-min))
       (while (re-search-forward
 	      "\\(\\(https?\\|ftp\\)://\\S-+\\) *\n\\(\\S-+\\)" nil t)
-	(replace-match "\\1\\3" t)))
+        (if (save-match-data
+              (not (string-match "^\\(https?\\|ftp\\):" (match-string 3))))
+            (replace-match "\\1\\3" t))))
     (when (interactive-p)
       (gnus-treat-article nil))))
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-13  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-01 17:54 Small article-unsplit-urls fix Mark Plaksin
2005-12-01 23:16 ` Mark Plaksin
2006-04-13  6:46   ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).