trim whitespace from values extracted from the pom file
This commit is contained in:
parent
5c32f960e8
commit
05c9a25b4e
1 changed files with 2 additions and 2 deletions
|
|
@ -881,9 +881,9 @@ class POMHandler(xml.sax.handler.ContentHandler):
|
|||
# Only set a value from the "parent" tag if we don't already have
|
||||
# that value set
|
||||
if not self.values.has_key(self.tag_stack[-1]):
|
||||
self.values[self.tag_stack[-1]] = self.tag_content
|
||||
self.values[self.tag_stack[-1]] = self.tag_content.strip()
|
||||
elif self.tag_stack[-2] == 'project':
|
||||
self.values[self.tag_stack[-1]] = self.tag_content
|
||||
self.values[self.tag_stack[-1]] = self.tag_content.strip()
|
||||
self.tag_content = ''
|
||||
self.tag_stack.pop()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue