mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 04:51:08 -05:00
Wikifetch: replace embedded \n with commas (for bulleted lists)
This commit is contained in:
parent
3ec0dbb014
commit
100120f76c
@ -28,7 +28,8 @@ def fmt_node(w, summary=False):
|
||||
if len(lines) > 1:
|
||||
s = lines[0]
|
||||
break
|
||||
return s.strip()
|
||||
# replace \n with commas, it's often used inside bulleted lists
|
||||
return s.strip().replace('\n', ', ')
|
||||
|
||||
_RE_EMPTY_PARENTHESES = re.compile(r' ?\(\s+\)')
|
||||
def _cleanup(text):
|
||||
|
Loading…
x
Reference in New Issue
Block a user