diff --git a/wrabbit/parser/constants.py b/wrabbit/parser/constants.py index 2a4e1af..b65d592 100755 --- a/wrabbit/parser/constants.py +++ b/wrabbit/parser/constants.py @@ -188,7 +188,7 @@ def __str__(self): # This part contains constants related to image generation for Markdown # Find Markdown images -REGEX_MD_IMAGE = r'((?:!|)\[([^\[\]]+)]\(([^\[\]\(\)]+\.((?:jpe?g|png)))({opt}#gh-{image_mode}-mode-only|)((?:#sbg_.*|))\))' +REGEX_MD_IMAGE = r'((?:!|)\[([^\[\]]+)]\(([^\[\]\(\)]+\.((?:jpe?g|png)))({opt}#gh-{image_mode}-mode-only|)((?:#sbg_.*|))(?:\s[^\s]+|)\))' # Find

in HTML REGEX_HTML_IMAGE = r'(?:]+)>.*?)]+>(?:.*?

)' # Find in HTML diff --git a/wrabbit/version.py b/wrabbit/version.py index 493f741..260c070 100755 --- a/wrabbit/version.py +++ b/wrabbit/version.py @@ -1 +1 @@ -__version__ = "0.3.0" +__version__ = "0.3.1" diff --git a/wrabbit/wrapper/wrapper.py b/wrabbit/wrapper/wrapper.py index d8b3e34..699c3a6 100755 --- a/wrabbit/wrapper/wrapper.py +++ b/wrabbit/wrapper/wrapper.py @@ -165,7 +165,9 @@ def add_hint(self, hint): self.hints.append(hint) def add_docs(self, doc): - self.doc = doc + # Newline character protects the first line in the CWL from being too + # long. If the first line is too long this sometimes causes errors. + self.doc = "\n" + doc def add_revision_note(self, note): self.revision_note = note