1.1 --- a/moinformat/links/common.py Fri Feb 08 22:35:46 2019 +0100
1.2 +++ b/moinformat/links/common.py Fri Feb 08 22:36:21 2019 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Common linking scheme functionality.
1.6
1.7 -Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2018, 2019 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 @@ -23,6 +23,14 @@
1.13
1.14 "Translate Moin links into other forms."
1.15
1.16 + # Pagename whitespace conversion, configured using the "whitespace" metadata
1.17 + # setting.
1.18 +
1.19 + default_whitespace_map = [
1.20 + (" ", "_"),
1.21 + ("\n", "_"),
1.22 + ]
1.23 +
1.24 def __init__(self, metadata):
1.25
1.26 "Initialise the linker with the 'metadata'."