Mercurial > hg > freeDiameter
comparison contrib/tools/org_to_fd.pl @ 1437:0a80278df21f
org_to_fd.pl: convert empty comments to blank links
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Thu, 20 Feb 2020 15:46:20 +1100 |
parents | 8850d29960aa |
children | 4b613aaf8873 |
comparison
equal
deleted
inserted
replaced
1436:ad50ef2eddea | 1437:0a80278df21f |
---|---|
97 next if ($name =~ m/Attribute Name/); | 97 next if ($name =~ m/Attribute Name/); |
98 if ($name =~ m/# (.*)/) { | 98 if ($name =~ m/# (.*)/) { |
99 print_comment($1); | 99 print_comment($1); |
100 next; | 100 next; |
101 } | 101 } |
102 if ($name =~ m/#/) { | |
103 print("\n"); | |
104 next; | |
105 } | |
102 | 106 |
103 if ($name =~ m/\s/) { | 107 if ($name =~ m/\s/) { |
104 die(sprintf("name '%s' contains space", $name)); | 108 die(sprintf("name '%s' contains space", $name)); |
105 } | 109 } |
106 | 110 |