Skip to content

Commit

Permalink
Tweak API
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Aug 15, 2024
1 parent 047042a commit 6403fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/xmlparser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ object XmlInterpolation:
throw InterpolationError(m"attribute value has not been specified", state.offset, 1)

case '=' =>
if state.current.starts(t"xmlns:") then state.addNamespace(state.current.drop(6))(AttributeEquals)
if state.current.starts(t"xmlns:") then state.addNamespace(state.current.skip(6))(AttributeEquals)
else state(AttributeEquals)

case ':' =>
Expand Down

0 comments on commit 6403fac

Please sign in to comment.