summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2009-02-19 14:40:34 +0000
committerMarc Englund <marc.englund@itmill.com>2009-02-19 14:40:34 +0000
commitbc1103da99cfc5d0cfebf5bf55a52a33af35e3e9 (patch)
treee788112300c2b01df80a11f59b5ca67a322f7e23 /src/com
parentc552f44e215783d4d8fb7f46a4c11198c227958d (diff)
downloadvaadin-framework-bc1103da99cfc5d0cfebf5bf55a52a33af35e3e9.tar.gz
vaadin-framework-bc1103da99cfc5d0cfebf5bf55a52a33af35e3e9.zip
CustomLayout no longer expects a space before "src=". fixes #2654
svn changeset:6908/svn branch:trunk
Diffstat (limited to 'src/com')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java
index 0b218e796f..0e4f0aaa2c 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java
@@ -223,12 +223,12 @@ public class ICustomLayout extends ComplexPanel implements Paintable,
// prefix all relative image elements to point to theme dir with a
// regexp search
template = template.replaceAll(
- "<((?:img)|(?:IMG)) ([^>]*)src=\"((?![a-z]+:)[^/][^\"]+)\"",
+ "<((?:img)|(?:IMG))\\s([^>]*)src=\"((?![a-z]+:)[^/][^\"]+)\"",
"<$1 $2src=\"" + relImgPrefix + "$3\"");
// also support src attributes without quotes
template = template
.replaceAll(
- "<((?:img)|(?:IMG)) ([^>]*)src=[^\"]((?![a-z]+:)[^/][^ />]+)[ />]",
+ "<((?:img)|(?:IMG))\\s([^>]*)src=[^\"]((?![a-z]+:)[^/][^ />]+)[ />]",
"<$1 $2src=\"" + relImgPrefix + "$3\"");
// also prefix relative style="...url(...)..."
template = template