Merge pull request #7 from xoxys/fix-multiline

remove only first hashtag from a multiline comment
This commit is contained in:
Robert Kaussow 2020-03-04 17:09:46 +01:00 committed by GitHub
commit cc55123bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -1,7 +1,2 @@
* BUGFIX
* add `role_name` config option to overwrite name of the role
* fix not aborting overwrite dialog
* fix failed loading of empty yaml files
* fix failed loading of yaml files containing `!unsafe` tag
* FEATURE
* add basic hugo theme
* remove only first hashtag from a multiline comment

View File

@ -139,7 +139,7 @@ class Annotation:
self._file_handler.seek(current_file_position)
break
final = next_line.replace("#", "").rstrip()
final = re.findall(r"\#(.*)", next_line)[0].rstrip()
if final[:1] == " ":
final = final[1:]
final = newline + final