bug fix: split only once on ':' for meta tag analysis on DC Description
This commit is contained in:
parent
9f9e350933
commit
59bd3cfa2b
1 changed files with 2 additions and 1 deletions
|
@ -38,10 +38,11 @@ class Controller(BaseController):
|
|||
target = self.view.virtualTarget
|
||||
if target is not None:
|
||||
desc = target.dcDescription
|
||||
print '***', desc
|
||||
if desc:
|
||||
for line in desc.splitlines():
|
||||
if ':' in line:
|
||||
name, value = line.split(':')
|
||||
name, value = line.split(':', 1)
|
||||
if name in metaTagNames:
|
||||
macros.register('meta', name, metaName=name,
|
||||
metaContent=value)
|
||||
|
|
Loading…
Add table
Reference in a new issue