Browse Source

five tabs in front of lines

main
lhess2021 4 years ago
parent
commit
bf393c1296
  1. 2
      py-scripts.d/word-tags.py

2
py-scripts.d/word-tags.py

@ -75,7 +75,7 @@ def add_tags(filename):
# If there's a single space at the beginning of the line, delete it # If there's a single space at the beginning of the line, delete it
line_spaced = line_spaced.lstrip(' ') line_spaced = line_spaced.lstrip(' ')
# Add three tabs at the beginning # Add three tabs at the beginning
line_spaced = re.sub('^','\t\t\t',line_spaced) line_spaced = re.sub('^','\t\t\t\t\t',line_spaced)
Cxml.write(line_spaced) Cxml.write(line_spaced)
Cxmltmp.close() Cxmltmp.close()
os.remove(tmpxmlfile) os.remove(tmpxmlfile)

Loading…
Cancel
Save