Undo lost headers

This commit is contained in:
Richard Berger
2020-09-02 12:52:30 -04:00
parent 88e09fe648
commit 4e27c47f96
8 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,7 @@
.. index:: angle_coeff
angle_coeff command
===================
Syntax
""""""

View File

@ -1,3 +1,7 @@
.. index:: angle_style
angle_style command
===================
Syntax
""""""

View File

@ -1,3 +1,7 @@
.. index:: fix_modify
fix_modify command
==================
Syntax
""""""

View File

@ -1,3 +1,7 @@
.. index:: pair_coeff
pair_coeff command
==================
Syntax
""""""

View File

@ -1,3 +1,7 @@
.. index:: pair_modify
pair_modify command
===================
Syntax
""""""

View File

@ -1,3 +1,7 @@
.. index:: pair_style
pair_style command
==================
Syntax
""""""

View File

@ -1,3 +1,7 @@
.. index:: pair_write
pair_write command
==================
Syntax
""""""

View File

@ -69,7 +69,7 @@ for orig_file in args.files:
for line in reader:
print(line, end="", file=writer)
if found_syntax:
if found_syntax and len(styles) > 0:
# override original file
shutil.move(new_file, orig_file)
else: