-
-
Save arlolra/08adb3082923cd95af81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/pegTokenizer.pegjs.txt b/lib/pegTokenizer.pegjs.txt | |
index 221347a..de8cb01 100644 | |
--- a/lib/pegTokenizer.pegjs.txt | |
+++ b/lib/pegTokenizer.pegjs.txt | |
@@ -1159,7 +1159,9 @@ nowiki_content | |
}) | |
)* { | |
// return nowiki tags as well? | |
- return tu.flattenStringlist(ts); | |
+ return tu.flattenStringlist(ts).map(function(s) { | |
+ return (typeof s === 'string') ? s.replace(/\s+/g, ' ') : s; | |
+ }); | |
} | |
/* Generic XML-like tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://phabricator.wikimedia.org/T107622