Browse Source

Bug de plastex: lien vers les correctifs. #15

pull/20/head
Louis 11 years ago
parent
commit
b285650c52
  1. 7
      songbook_core/plastex.py

7
songbook_core/plastex.py

@ -17,6 +17,13 @@ def process_unbr_spaces(node):
will be rendered as unbreakable space. will be rendered as unbreakable space.
Return node object for convenience. Return node object for convenience.
This function is a workaround to a bug that has been solved since:
- https://github.com/tiarno/plastex/commit/76bb78d5fbaac48e68025a3545286cc63cb4e7ad
- https://github.com/tiarno/plastex/commit/682a0d223b99d6b949bacf1c974d24dc9bb1d18e
It can be deleted once this bug has been merged in production version of
PlasTeX.
""" """
if (type(node) == Sentences.InterWordSpace or if (type(node) == Sentences.InterWordSpace or
(type(node) == Sentences.NoLineBreak and node.source == '~ ')): (type(node) == Sentences.NoLineBreak and node.source == '~ ')):

Loading…
Cancel
Save