Permalink
Browse files

Minor change in code path, really only to get 100 percent test covera…

…ge. :-)

svn path=/plone.intelligenttext/trunk/; revision=18998
  • Loading branch information...
1 parent 0eefcb0 commit 298cea6d1df72a8c9b4ebb6da02d35f380d30d4e @mauritsvanrees mauritsvanrees committed Jan 18, 2008
Showing with 9 additions and 4 deletions.
  1. +7 −1 docs/HISTORY.txt
  2. +2 −3 plone/intelligenttext/transforms.py
View
@@ -2,6 +2,12 @@ Changelog for plone.intelligenttext
(name of developer listed in brackets)
+plone.intelligenttext - 1.0.2 Unreleased
+
+ - Minor change in code path, really only to get 100 percent test
+ coverage.
+ [maurits]
+
plone.intelligenttext - 1.0.1 Released December 4, 2007
- Accept ip addresses as valid urls.
@@ -54,4 +60,4 @@ plone.intelligenttext - 0.1
Ploneboard by Plone Solutions and others.
- Initial package structure.
- [zopeskel]
+ [zopeskel]
@@ -8,10 +8,9 @@ def convertWebIntelligentPlainTextToHtml(orig, tab_width=4):
def abbreviateUrl(url, max = 60, ellipsis = "[…]"):
if len(url) < max:
return url
+ protocol = ""
protocolend = url.find("//")
- if protocolend == -1:
- protocol = ""
- else:
+ if protocolend != -1:
protocol = url[0 : protocolend+2]
url = url[protocolend+2 : ]
list = url.split("/")

0 comments on commit 298cea6

Please sign in to comment.