fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor fixups.
[librarian.git]
/
librarian
/
text.py
diff --git
a/librarian/text.py
b/librarian/text.py
index
d965a47
..
0f3c0bb
100644
(file)
--- a/
librarian/text.py
+++ b/
librarian/text.py
@@
-84,7
+84,7
@@
def transform(wldoc, flags=None, **options):
source = ""
contributors = ""
funders = ""
source = ""
contributors = ""
funders = ""
- re
turn OutputFile.from_string(
(TEMPLATE % {
+ re
sult =
(TEMPLATE % {
'description': description,
'url': url,
'license_description': license_description,
'description': description,
'url': url,
'license_description': license_description,
@@
-92,7
+92,8
@@
def transform(wldoc, flags=None, **options):
'source': source,
'contributors': contributors,
'funders': funders,
'source': source,
'contributors': contributors,
'funders': funders,
- }).encode('utf-8')
)
+ }).encode('utf-8')
else:
else:
- return OutputFile.from_string(unicode(result).encode('utf-8'))
+ result = unicode(result).encode('utf-8')
+ return OutputFile.from_string("\r\n".join(result.splitlines()) + "\r\n")