Explorar o código

imporved hyphenation to build.py

Bachir Soussi Chiadmi %!s(int64=8) %!d(string=hai) anos
pai
achega
40d8450ccf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bin/build.py

+ 2 - 2
bin/build.py

@@ -243,11 +243,11 @@ def hyphenate(node):
          pass
 
    # add none breaking spaces
-   nbspzr_before = ['"', '»', '\!', '\?', ':', ';']
+   nbspzr_before = ['»', '\!', '\?', ':', ';']
    for char in nbspzr_before:
       nodestr = re.sub(r'('+char+')\s(\w)', r'\1 \2', nodestr)
 
-   nbspzr_after = ['"', '«']
+   nbspzr_after = ['«']
    for char in nbspzr_after:
       nodestr = re.sub(r'(\w)\s('+char+')', r'\1 \2', nodestr)