diff options
author | Martin Odersky <odersky@gmail.com> | 2010-01-07 12:03:44 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-01-07 12:03:44 +0000 |
commit | e525797f194344338104739e7a5713e08dc4ba92 (patch) | |
tree | c5396c3d6ae9630f0cf7a51fdf8e6fe90dfe05cc /src/library | |
parent | b5c141b4ed5e2db673a306a2ba0c23a1fbe2d9ee (diff) | |
download | scala-e525797f194344338104739e7a5713e08dc4ba92.tar.gz scala-e525797f194344338104739e7a5713e08dc4ba92.tar.bz2 scala-e525797f194344338104739e7a5713e08dc4ba92.zip |
Fixed #2844 with dpp's patch. review by xmlteam.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/xml/parsing/MarkupParser.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/xml/parsing/MarkupParser.scala b/src/library/scala/xml/parsing/MarkupParser.scala index ff19bd3ed5..2779fe1d7c 100644 --- a/src/library/scala/xml/parsing/MarkupParser.scala +++ b/src/library/scala/xml/parsing/MarkupParser.scala @@ -581,7 +581,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests val pos = this.pos val (qname, aMap, scope) = xTag(pscope) val (pre, local) = Utility.prefix(qname) match { - case Some(p) => (p, qname drop p.length) + case Some(p) => (p, qname drop p.length+1) case _ => (null, qname) } val ts = { |