1.1 --- a/moinformat/utils/file.py Mon Oct 04 22:19:39 2021 +0200
1.2 +++ b/moinformat/utils/file.py Wed Oct 06 00:00:30 2021 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 File utilities.
1.6
1.7 -Copyright (C) 2019 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2019, 2021 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -30,7 +30,7 @@
1.13
1.14 f = codecs.open(filename, encoding=encoding)
1.15 try:
1.16 - return f.read()
1.17 + return f.read().replace("\r\n", "\n")
1.18 finally:
1.19 f.close()
1.20